Skip to content

Commit 58ccc6d

Browse files
committed
prevent abort in get_current_target when AOT and compiler both enabled
1 parent d053f55 commit 58ccc6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/iwasm/aot/iwasm_aot.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if (WAMR_BUILD_AOT_VALIDATOR EQUAL 1)
2828
list (APPEND c_source_all ${IWASM_AOT_DIR}/aot_validator.c)
2929
endif ()
3030

31-
if (WAMR_BUILD_WAMR_COMPILER EQUAL 1)
31+
if (WAMR_BUILD_WAMR_COMPILER EQUAL 1 AND WAMR_BUILD_AOT EQUAL 0)
3232
# AOT reloc functions are not used during AOT compilation
3333
set (arch_source ${IWASM_AOT_DIR}/arch/aot_reloc_dummy.c)
3434
elseif (WAMR_BUILD_TARGET STREQUAL "X86_64" OR WAMR_BUILD_TARGET STREQUAL "AMD_64")

0 commit comments

Comments
 (0)