set default value of WAMR_BUILD_REF_TYPES to 1 in standalone cases (#4227)

- set default value of WAMR_BUILD_REF_TYPES to 1 in CMakeLists.txt
This commit is contained in:
Liu Jia
2025-04-30 14:10:56 +08:00
committed by GitHub
parent a9966897b6
commit 9773390537
5 changed files with 16 additions and 4 deletions

View File

@ -88,6 +88,11 @@ if (NOT DEFINED WAMR_BUILD_SIMD)
set (WAMR_BUILD_SIMD 0)
endif ()
if (NOT DEFINED WAMR_BUILD_REF_TYPES)
# Enable reference types by default
set (WAMR_BUILD_REF_TYPES 1)
endif ()
set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
include (${WAMR_ROOT_DIR}/build-scripts/runtime_lib.cmake)