@@ -12,6 +12,9 @@ set (WAMR_BUILD_APP_FRAMEWORK 0)
1212set (WAMR_BUILD_MEMORY_PROFILING 1)
1313set (WAMR_BUILD_INTERP 0)
1414set (WAMR_BUILD_AOT 1)
15+ set (WAMR_BUILD_FAST_INTERP 0)
16+ # to involve LLVM
17+ set (WAMR_BUILD_JIT 1)
1518
1619include (../unit_common.cmake )
1720
@@ -26,12 +29,11 @@ set (unit_test_sources
2629 ${WAMR_RUNTIME_LIB_SOURCE}
2730 ${UNCOMMON_SHARED_SOURCE}
2831 ${IWASM_COMPL_SOURCE}
29- ${WASM_APP_LIB_SOURCE_ALL}
3032)
3133
3234# Test case: .aot file with hardware bound check.
3335add_executable (linear_memory_test_aot ${unit_test_sources} )
34- target_link_libraries (linear_memory_test_aot gtest_main )
36+ target_link_libraries (linear_memory_test_aot ${LLVM_AVAILABLE_LIBS} gtest_main )
3537gtest_discover_tests (linear_memory_test_aot )
3638target_compile_definitions (linear_memory_test_aot PRIVATE WAMR_DISABLE_HW_BOUND_CHECK=0 )
3739
@@ -63,6 +65,6 @@ add_custom_command(TARGET linear_memory_test_aot POST_BUILD
6365
6466# Test case: .aot file with no hardware bound check.
6567add_executable (linear_memory_test_aot_no_hw_bound ${unit_test_sources} )
66- target_link_libraries (linear_memory_test_aot_no_hw_bound gtest_main )
68+ target_link_libraries (linear_memory_test_aot_no_hw_bound ${LLVM_AVAILABLE_LIBS} gtest_main )
6769gtest_discover_tests (linear_memory_test_aot_no_hw_bound )
6870target_compile_definitions (linear_memory_test_aot_no_hw_bound PRIVATE WAMR_DISABLE_HW_BOUND_CHECK=1 )
0 commit comments