support tail-call in AoT (#419)
This commit is contained in:
@ -26,6 +26,7 @@ add_definitions(-DWASM_ENABLE_BULK_MEMORY=1)
|
||||
add_definitions(-DWASM_DISABLE_HW_BOUND_CHECK=1)
|
||||
add_definitions(-DWASM_ENABLE_SHARED_MEMORY=1)
|
||||
add_definitions(-DWASM_ENABLE_THREAD_MGR=1)
|
||||
add_definitions(-DWASM_ENABLE_TAIL_CALL=1)
|
||||
|
||||
# Set WAMR_BUILD_TARGET, currently values supported:
|
||||
# "X86_64", "AMD_64", "X86_32", "ARM_32", "MIPS_32", "XTENSA_32"
|
||||
|
||||
@ -41,6 +41,7 @@ print_help()
|
||||
printf(" llvmir-opt Optimized LLVM IR\n");
|
||||
printf(" --enable-bulk-memory Enable the post-MVP bulk memory feature\n");
|
||||
printf(" --enable-multi-thread Enable multi-thread feature, the dependent features bulk-memory and\n");
|
||||
printf(" --enable-tail-call Enable the post-MVP tail call feature\n");
|
||||
printf(" thread-mgr will be enabled automatically\n");
|
||||
printf(" -v=n Set log verbose level (0 to 5, default is 2), larger with more log\n");
|
||||
printf("Examples: wamrc -o test.aot test.wasm\n");
|
||||
@ -146,6 +147,9 @@ main(int argc, char *argv[])
|
||||
option.enable_bulk_memory = true;
|
||||
option.enable_thread_mgr = true;
|
||||
}
|
||||
else if (!strcmp(argv[0], "--enable-tail-call")) {
|
||||
option.enable_tail_call = true;
|
||||
}
|
||||
else
|
||||
return print_help();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user