Skip to content

Commit

Permalink
Enable ref types by default (#3894)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzzabiyaka authored Nov 27, 2024
1 parent 1d111a3 commit 7b553cd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 1 addition & 1 deletion doc/build_wamr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions product-mini/platforms/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7b553cd

Please sign in to comment.