Skip to content

Commit

Permalink
templates/c: Add --enable-bulk-memory to WASM_OPT_FLAGS
Browse files Browse the repository at this point in the history
whether or not we compile our code with bulk-memory,
wasi-sdk ships some functions built with bulk-memory. (memset etc)
  • Loading branch information
yamt committed Sep 13, 2024
1 parent 467ae04 commit 3053b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/assets/templates/c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CXX = "$(WASI_SDK_PATH)/bin/clang++" --sysroot="$(WASI_SDK_PATH)/share/wasi-sysr

# Optional dependency from binaryen for smaller builds
WASM_OPT = wasm-opt
WASM_OPT_FLAGS = -Oz --zero-filled-memory --strip-producers
WASM_OPT_FLAGS = -Oz --zero-filled-memory --strip-producers --enable-bulk-memory

# Whether to build for debugging instead of release
DEBUG = 0
Expand Down

0 comments on commit 3053b66

Please sign in to comment.