Skip to content

Commit 68df37e

Browse files
authored
Pass -O2 -DNDEBUG to wasi-libc again (#423)
I forgot in #422 that by specifying `EXTRA_CFLAGS` to the wasi-libc build that it would override the defaults of wasi-libc which is to pass these two flags in. This passes them back in to ensure the default build still has the same flags.
1 parent 307694b commit 68df37e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ WASI_LIBC_MAKEFLAGS = \
143143
AR=$(BUILD_PREFIX)/bin/llvm-ar \
144144
NM=$(BUILD_PREFIX)/bin/llvm-nm \
145145
SYSROOT=$(BUILD_PREFIX)/share/wasi-sysroot \
146-
EXTRA_CFLAGS="$(WASI_SDK_CFLAGS)" \
146+
EXTRA_CFLAGS="$(WASI_SDK_CFLAGS) -O2 -DNDEBUG" \
147147
TARGET_TRIPLE=$(1)
148148

149149
build/wasi-libc.BUILT: build/compiler-rt.BUILT build/wasm-component-ld.BUILT

0 commit comments

Comments
 (0)