Skip to content

Commit ac55bbf

Browse files
committed
Enable bulk memory by default (#1781)
Enable bulk memory by default since it is a finished wasm spec proposal and is enabled by default in latest wasi-sdk. Developer often encounters "invalid section id" or "unsupported opcode" error if it isn't enabled.
1 parent afe1361 commit ac55bbf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build-scripts/config_common.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,16 @@ if (WAMR_BUILD_SPEC_TEST EQUAL 1)
179179
add_definitions (-DWASM_ENABLE_SPEC_TEST=1)
180180
message (" spec test compatible mode is on")
181181
endif ()
182+
if (NOT DEFINED WAMR_BUILD_BULK_MEMORY)
183+
# Enable bulk memory by default
184+
set (WAMR_BUILD_BULK_MEMORY 1)
185+
endif ()
182186
if (WAMR_BUILD_BULK_MEMORY EQUAL 1)
183187
add_definitions (-DWASM_ENABLE_BULK_MEMORY=1)
184188
message (" Bulk memory feature enabled")
185189
else ()
186190
add_definitions (-DWASM_ENABLE_BULK_MEMORY=0)
191+
message (" Bulk memory feature disabled")
187192
endif ()
188193
if (WAMR_BUILD_SHARED_MEMORY EQUAL 1)
189194
add_definitions (-DWASM_ENABLE_SHARED_MEMORY=1)

0 commit comments

Comments
 (0)