Explorar o código

Enable ref types by default (#3894)

Maks Litskevich hai 1 ano
pai
achega
7b553cd420
Modificáronse 3 ficheiros con 5 adicións e 5 borrados
  1. 2 2
      CMakeLists.txt
  2. 1 1
      doc/build_wamr.md
  3. 2 2
      product-mini/platforms/linux/CMakeLists.txt

+ 2 - 2
CMakeLists.txt

@@ -113,8 +113,8 @@ if (NOT DEFINED WAMR_BUILD_SIMD)
 endif ()
 
 if (NOT DEFINED WAMR_BUILD_REF_TYPES)
-  # Disable reference types by default
-  set (WAMR_BUILD_REF_TYPES 0)
+  # Enable reference types by default
+  set (WAMR_BUILD_REF_TYPES 1)
 endif ()
 
 set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})

+ 1 - 1
doc/build_wamr.md

@@ -223,7 +223,7 @@ Currently we only profile the memory consumption of module, module_instance and
 > See [basic sample](../samples/basic/src/main.c) for a usage example.
 
 #### **Enable reference types feature**
-- **WAMR_BUILD_REF_TYPES**=1/0, default to disable if not set
+- **WAMR_BUILD_REF_TYPES**=1/0, default to enable if not set
 
 #### **Exclude WAMR application entry functions**
 - **WAMR_DISABLE_APP_ENTRY**=1/0, default to disable if not set

+ 2 - 2
product-mini/platforms/linux/CMakeLists.txt

@@ -108,8 +108,8 @@ if (NOT DEFINED WAMR_BUILD_SIMD)
 endif ()
 
 if (NOT DEFINED WAMR_BUILD_REF_TYPES)
-  # Disable reference types by default
-  set (WAMR_BUILD_REF_TYPES 0)
+  # Enable reference types by default
+  set (WAMR_BUILD_REF_TYPES 1)
 endif ()
 
 if (NOT DEFINED WAMR_BUILD_DEBUG_INTERP)