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)
8888 set (WAMR_BUILD_SIMD 0)
8989endif ()
9090
91+ if (NOT DEFINED WAMR_BUILD_REF_TYPES)
92+ # Enable reference types by default
93+ set (WAMR_BUILD_REF_TYPES 1)
94+ endif ()
95+
9196set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR} /../../..)
9297
9398include (${WAMR_ROOT_DIR} /build -scripts/runtime_lib.cmake)
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ endif ()
4848if (NOT WAMR_BUILD_AOT)
4949 set (WAMR_BUILD_AOT 1)
5050endif ()
51+ if (NOT WAMR_BUILD_REF_TYPES)
52+ set (WAMR_BUILD_REF_TYPES 1)
53+ endif ()
5154set (WAMR_BUILD_LIBC_BUILTIN 1)
5255set (WAMR_BUILD_LIBC_WASI 1)
5356
Original file line number Diff line number Diff line change 5555 ./iwasm --native-lib=./libtest_module_malloc.so wasm-app/test.aot
5656 fi
5757fi
58-
Original file line number Diff line number Diff line change 44cmake_minimum_required (VERSION 3.14)
55project (wasm-apps)
66
7- set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR} /../../../../wamr )
7+ set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR} /../../../..)
88
99if (APPLE )
1010 set (HAVE_FLAG_SEARCH_PATHS_FIRST 0)
Original file line number Diff line number Diff line change 1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
14- project (c_embed_test)
15-
1614cmake_minimum_required (VERSION 3.14)
1715
16+ project (c_embed_test)
17+
1818include (CheckPIESupported)
1919
2020string (TOLOWER ${CMAKE_HOST_SYSTEM_NAME} WAMR_BUILD_PLATFORM)
@@ -34,6 +34,11 @@ set(WAMR_BUILD_LIBC_WASI 1)
3434set (WAMR_BUILD_SIMD 1)
3535set (WAMR_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR} /../../../..)
3636
37+ if (NOT DEFINED WAMR_BUILD_REF_TYPES)
38+ # Enable reference types by default
39+ set (WAMR_BUILD_REF_TYPES 1)
40+ endif ()
41+
3742set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} " )
3843if (NOT WAMR_BUILD_PLATFORM STREQUAL "darwin" )
3944 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