support tail-call in AoT (#419)

This commit is contained in:
Xu Jun
2020-10-13 08:34:31 +08:00
committed by GitHub
parent cc0aab1063
commit c87f28eacd
9 changed files with 55 additions and 4 deletions

View File

@ -1062,6 +1062,9 @@ aot_create_comp_context(AOTCompData *comp_data,
if (option->enable_thread_mgr)
comp_ctx->enable_thread_mgr = true;
if (option->enable_tail_call)
comp_ctx->enable_tail_call = true;
if (option->is_jit_mode) {
/* Create LLVM execution engine */
LLVMInitializeMCJITCompilerOptions(&jit_options, sizeof(jit_options));