File tree Expand file tree Collapse file tree 5 files changed +16
-4
lines changed
test-pthread/threads-opcode-wasm-apps
test-running-modes/c-embed Expand file tree Collapse file tree 5 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,11 @@ if (NOT DEFINED WAMR_BUILD_SIMD)
88
88
set (WAMR_BUILD_SIMD 0 )
89
89
endif ()
90
90
91
+ if (NOT DEFINED WAMR_BUILD_REF_TYPES )
92
+ # Enable reference types by default
93
+ set (WAMR_BUILD_REF_TYPES 1 )
94
+ endif ()
95
+
91
96
set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR} /../../.. )
92
97
93
98
include (${WAMR_ROOT_DIR} /build-scripts/runtime_lib.cmake )
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ endif ()
48
48
if (NOT WAMR_BUILD_AOT )
49
49
set (WAMR_BUILD_AOT 1 )
50
50
endif ()
51
+ if (NOT WAMR_BUILD_REF_TYPES )
52
+ set (WAMR_BUILD_REF_TYPES 1 )
53
+ endif ()
51
54
set (WAMR_BUILD_LIBC_BUILTIN 1 )
52
55
set (WAMR_BUILD_LIBC_WASI 1 )
53
56
Original file line number Diff line number Diff line change 55
55
./iwasm --native-lib=./libtest_module_malloc.so wasm-app/test.aot
56
56
fi
57
57
fi
58
-
Original file line number Diff line number Diff line change 4
4
cmake_minimum_required (VERSION 3.14 )
5
5
project (wasm-apps )
6
6
7
- set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR} /../../../../wamr )
7
+ set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR} /../../../.. )
8
8
9
9
if (APPLE )
10
10
set (HAVE_FLAG_SEARCH_PATHS_FIRST 0 )
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- project (c_embed_test )
15
-
16
14
cmake_minimum_required (VERSION 3.14 )
17
15
16
+ project (c_embed_test )
17
+
18
18
include (CheckPIESupported )
19
19
20
20
string (TOLOWER ${CMAKE_HOST_SYSTEM_NAME} WAMR_BUILD_PLATFORM )
@@ -34,6 +34,11 @@ set(WAMR_BUILD_LIBC_WASI 1)
34
34
set (WAMR_BUILD_SIMD 1 )
35
35
set (WAMR_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR} /../../../.. )
36
36
37
+ if (NOT DEFINED WAMR_BUILD_REF_TYPES )
38
+ # Enable reference types by default
39
+ set (WAMR_BUILD_REF_TYPES 1 )
40
+ endif ()
41
+
37
42
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} " )
38
43
if (NOT WAMR_BUILD_PLATFORM STREQUAL "darwin" )
39
44
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections -pie -fPIE" )
You can’t perform that action at this time.
0 commit comments