Skip to content

Commit 7b553cd

Browse files
authored
Enable ref types by default (#3894)
1 parent 1d111a3 commit 7b553cd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ if (NOT DEFINED WAMR_BUILD_SIMD)
113113
endif ()
114114

115115
if (NOT DEFINED WAMR_BUILD_REF_TYPES)
116-
# Disable reference types by default
117-
set (WAMR_BUILD_REF_TYPES 0)
116+
# Enable reference types by default
117+
set (WAMR_BUILD_REF_TYPES 1)
118118
endif ()
119119

120120
set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})

doc/build_wamr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Currently we only profile the memory consumption of module, module_instance and
223223
> See [basic sample](../samples/basic/src/main.c) for a usage example.
224224
225225
#### **Enable reference types feature**
226-
- **WAMR_BUILD_REF_TYPES**=1/0, default to disable if not set
226+
- **WAMR_BUILD_REF_TYPES**=1/0, default to enable if not set
227227
228228
#### **Exclude WAMR application entry functions**
229229
- **WAMR_DISABLE_APP_ENTRY**=1/0, default to disable if not set

product-mini/platforms/linux/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ if (NOT DEFINED WAMR_BUILD_SIMD)
108108
endif ()
109109

110110
if (NOT DEFINED WAMR_BUILD_REF_TYPES)
111-
# Disable reference types by default
112-
set (WAMR_BUILD_REF_TYPES 0)
111+
# Enable reference types by default
112+
set (WAMR_BUILD_REF_TYPES 1)
113113
endif ()
114114

115115
if (NOT DEFINED WAMR_BUILD_DEBUG_INTERP)

0 commit comments

Comments
 (0)