@@ -12,6 +12,9 @@ set (WAMR_BUILD_APP_FRAMEWORK 0)
12
12
set (WAMR_BUILD_MEMORY_PROFILING 1)
13
13
set (WAMR_BUILD_INTERP 0)
14
14
set (WAMR_BUILD_AOT 1)
15
+ set (WAMR_BUILD_FAST_INTERP 0)
16
+ # to involve LLVM
17
+ set (WAMR_BUILD_JIT 1)
15
18
16
19
include (../unit_common.cmake)
17
20
@@ -26,12 +29,11 @@ set (unit_test_sources
26
29
${WAMR_RUNTIME_LIB_SOURCE}
27
30
${UNCOMMON_SHARED_SOURCE}
28
31
${IWASM_COMPL_SOURCE}
29
- ${WASM_APP_LIB_SOURCE_ALL}
30
32
)
31
33
32
34
# Test case: .aot file with hardware bound check.
33
35
add_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)
35
37
gtest_discover_tests(linear_memory_test_aot)
36
38
target_compile_definitions (linear_memory_test_aot PRIVATE WAMR_DISABLE_HW_BOUND_CHECK=0)
37
39
@@ -63,6 +65,6 @@ add_custom_command(TARGET linear_memory_test_aot POST_BUILD
63
65
64
66
# Test case: .aot file with no hardware bound check.
65
67
add_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)
67
69
gtest_discover_tests(linear_memory_test_aot_no_hw_bound)
68
70
target_compile_definitions (linear_memory_test_aot_no_hw_bound PRIVATE WAMR_DISABLE_HW_BOUND_CHECK=1)
0 commit comments