Skip to content

Commit

Permalink
Merge pull request #761 from yamt/c-bulk-memory
Browse files Browse the repository at this point in the history
Enable bulk memory for C template
  • Loading branch information
aduros authored Sep 24, 2024
2 parents 22ec11a + 3053b66 commit 5fc5972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/assets/templates/c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ 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

# Compilation flags
CFLAGS = -W -Wall -Wextra -Werror -Wno-unused -Wconversion -Wsign-conversion -MMD -MP -fno-exceptions
CFLAGS = -W -Wall -Wextra -Werror -Wno-unused -Wconversion -Wsign-conversion -MMD -MP -fno-exceptions -mbulk-memory
ifeq ($(DEBUG), 1)
CFLAGS += -DDEBUG -O0 -g
else
Expand Down

0 comments on commit 5fc5972

Please sign in to comment.