File tree Expand file tree Collapse file tree 7 files changed +15
-20
lines changed Expand file tree Collapse file tree 7 files changed +15
-20
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,13 @@ add_subdirectory(libc-builtin)
60
60
add_subdirectory (shared-utils)
61
61
add_subdirectory (linear-memory-wasm)
62
62
add_subdirectory (linear-memory-aot)
63
- add_subdirectory (aot-stack-frame)
64
63
add_subdirectory (linux-perf)
65
64
add_subdirectory (gc)
66
65
add_subdirectory (tid-allocator)
67
66
68
67
if (NOT WAMR_BUILD_TARGET STREQUAL "X86_32" )
68
+ add_subdirectory (aot-stack-frame)
69
+
69
70
# should enable 32-bit llvm when X86_32
70
71
add_subdirectory (aot)
71
72
add_subdirectory (custom-section)
@@ -74,7 +75,7 @@ if (NOT WAMR_BUILD_TARGET STREQUAL "X86_32")
74
75
# Fast-JIT or mem64 is not supported on X86_32
75
76
add_subdirectory (running-modes)
76
77
add_subdirectory (memory64)
77
- # add_subdirectory (shared-heap)
78
+ add_subdirectory (shared-heap)
78
79
79
80
# HW_BOUND_CHECK is not supported on X86_32
80
81
add_subdirectory (runtime-common)
Original file line number Diff line number Diff line change @@ -16,10 +16,9 @@ add_definitions (-DWASM_ENABLE_AOT_STACK_FRAME=1)
16
16
set (WAMR_BUILD_AOT 1)
17
17
set (WAMR_BUILD_FAST_INTERP 0)
18
18
set (WAMR_BUILD_INTERP 0)
19
- # to involve LLVM
20
19
set (WAMR_BUILD_JIT 1)
21
20
set (WAMR_BUILD_LIBC_WASI 0)
22
- set (WAMR_BUILD_APP_FRAMEWORK 1 )
21
+ set (WAMR_BUILD_APP_FRAMEWORK 0 )
23
22
24
23
include (../unit_common.cmake)
25
24
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ set (WAMR_BUILD_MEMORY_PROFILING 1)
13
13
set (WAMR_BUILD_INTERP 0)
14
14
set (WAMR_BUILD_AOT 1)
15
15
set (WAMR_BUILD_FAST_INTERP 0)
16
- # to involve LLVM
17
- set (WAMR_BUILD_JIT 1)
18
16
19
17
include (../unit_common.cmake)
20
18
@@ -33,7 +31,7 @@ set (unit_test_sources
33
31
34
32
# Test case: .aot file with hardware bound check.
35
33
add_executable (linear_memory_test_aot ${unit_test_sources} )
36
- target_link_libraries (linear_memory_test_aot ${LLVM_AVAILABLE_LIBS} gtest_main)
34
+ target_link_libraries (linear_memory_test_aot gtest_main)
37
35
gtest_discover_tests(linear_memory_test_aot)
38
36
target_compile_definitions (linear_memory_test_aot PRIVATE WAMR_DISABLE_HW_BOUND_CHECK=0)
39
37
@@ -65,6 +63,6 @@ add_custom_command(TARGET linear_memory_test_aot POST_BUILD
65
63
66
64
# Test case: .aot file with no hardware bound check.
67
65
add_executable (linear_memory_test_aot_no_hw_bound ${unit_test_sources} )
68
- target_link_libraries (linear_memory_test_aot_no_hw_bound ${LLVM_AVAILABLE_LIBS} gtest_main)
66
+ target_link_libraries (linear_memory_test_aot_no_hw_bound gtest_main)
69
67
gtest_discover_tests(linear_memory_test_aot_no_hw_bound)
70
68
target_compile_definitions (linear_memory_test_aot_no_hw_bound PRIVATE WAMR_DISABLE_HW_BOUND_CHECK=1)
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ set(WAMR_BUILD_APP_FRAMEWORK 0)
13
13
set (WAMR_BUILD_AOT 0)
14
14
set (WAMR_BUILD_INTERP 1)
15
15
set (WAMR_BUILD_FAST_INTERP 0)
16
- set (WAMR_BUILD_JIT 0)
16
+ # to involve LLVM
17
+ set (WAMR_BUILD_JIT 1)
17
18
set (WAMR_BUILD_FAST_JIT 0)
18
19
set (WAMR_BUILD_MEMORY64 1)
19
20
set (WAMR_BUILD_SHARED_MEMORY 1)
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ add_definitions(-DRUN_ON_LINUX)
24
24
25
25
set (WAMR_BUILD_LIBC_BUILTIN 1)
26
26
set (WAMR_BUILD_MULTI_MODULE 0)
27
- set (WAMR_BUILD_LIBC_WASI 0 )
27
+ set (WAMR_BUILD_LIBC_WASI 1 )
28
28
set (WAMR_BUILD_APP_FRAMEWORK 0)
29
29
set (WAMR_BUILD_JIT 1)
30
30
set (WAMR_BUILD_FAST_JIT 1)
Original file line number Diff line number Diff line change @@ -36,11 +36,8 @@ add_executable(runtime_common_test ${unit_test_sources})
36
36
target_link_libraries (runtime_common_test ${LLVM_AVAILABLE_LIBS} gtest_main)
37
37
38
38
# Ensure that aot compiled is completed before linear_memory_test_aot is built
39
- set (dummy_output "${CMAKE_CURRENT_BINARY_DIR} /dummy_output" )
40
-
41
- add_custom_command (OUTPUT ${dummy_output}
39
+ add_custom_command (OUTPUT ${CMAKE_CURRENT_LIST_DIR} /wasm-apps/main.aot
42
40
COMMAND ./build_aot.sh
43
- COMMAND ${CMAKE_COMMAND} -E touch ${dummy_output}
44
41
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
45
42
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /build_aot.sh
46
43
COMMENT "Executing script to compile aot files"
@@ -49,15 +46,15 @@ add_custom_command(OUTPUT ${dummy_output}
49
46
50
47
add_custom_target (
51
48
BuildAot ALL
52
- DEPENDS ${dummy_output}
49
+ DEPENDS ${CMAKE_CURRENT_LIST_DIR} /wasm-apps/main.aot
53
50
)
54
51
55
52
add_dependencies (runtime_common_test BuildAot)
56
53
57
54
add_custom_command (TARGET runtime_common_test POST_BUILD
58
55
COMMAND ${CMAKE_COMMAND} -E copy
59
- ${CMAKE_CURRENT_LIST_DIR} /wasm-apps/main.wasm ${CMAKE_CURRENT_LIST_DIR} /wasm-apps/main.aot
60
- ${CMAKE_CURRENT_BINARY_DIR}
56
+ ${CMAKE_CURRENT_LIST_DIR} /wasm-apps/main.wasm ${CMAKE_CURRENT_LIST_DIR} /wasm-apps/main.aot
57
+ ${CMAKE_CURRENT_BINARY_DIR}
61
58
COMMENT "Copy main.wasm and main.aot to the directory: build/runtime-common."
62
59
)
63
60
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ set(WAMR_BUILD_APP_FRAMEWORK 0)
11
11
set (WAMR_BUILD_AOT 1)
12
12
set (WAMR_BUILD_INTERP 1)
13
13
set (WAMR_BUILD_FAST_INTERP 1)
14
- # to involve LLVM
15
- set (WAMR_BUILD_JIT 1)
14
+ set (WAMR_BUILD_JIT 0)
16
15
if (WAMR_BUILD_TARGET STREQUAL "X86_32" )
17
16
set (WAMR_BUILD_MEMORY64 0)
18
17
else ()
@@ -47,6 +46,6 @@ set(unit_test_sources
47
46
# Now simply link against gtest or gtest_main as needed. Eg
48
47
add_executable (shared_heap_test ${unit_test_sources} )
49
48
50
- target_link_libraries (shared_heap_test ${LLVM_AVAILABLE_LIBS} gtest_main)
49
+ target_link_libraries (shared_heap_test gtest_main)
51
50
52
51
gtest_discover_tests(shared_heap_test)
You can’t perform that action at this time.
0 commit comments