Fix build wamrc for xtensa failure (#1109)
Fix build wamrc failure when using llvm xtensa version, and update xtensa llvm version to 13.0.0.
This commit is contained in:
@ -2670,7 +2670,7 @@ apply_func_passes(AOTCompContext *comp_ctx)
|
||||
return true;
|
||||
}
|
||||
|
||||
#if WASM_ENABLE_LLVM_LEGACY_PM != 0
|
||||
#if WASM_ENABLE_LLVM_LEGACY_PM != 0 || LLVM_VERSION_MAJOR < 12
|
||||
static bool
|
||||
apply_lto_passes(AOTCompContext *comp_ctx)
|
||||
{
|
||||
@ -2709,7 +2709,7 @@ apply_lto_passes(AOTCompContext *comp_ctx)
|
||||
LLVMPassManagerBuilderDispose(pass_mgr_builder);
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
#endif /* end of WASM_ENABLE_LLVM_LEGACY_PM != 0 || LLVM_VERSION_MAJOR < 12 */
|
||||
|
||||
/* Check whether the target supports hardware atomic instructions */
|
||||
static bool
|
||||
@ -2816,7 +2816,7 @@ aot_compile_wasm(AOTCompContext *comp_ctx)
|
||||
}
|
||||
}
|
||||
else {
|
||||
#if WASM_ENABLE_LLVM_LEGACY_PM == 0
|
||||
#if WASM_ENABLE_LLVM_LEGACY_PM == 0 && LLVM_VERSION_MAJOR >= 12
|
||||
/* Run llvm new pass manager for AOT compiler if llvm
|
||||
legacy pass manager isn't used */
|
||||
bh_print_time("Begin to run llvm optimization passes");
|
||||
|
||||
Reference in New Issue
Block a user