Skip to content

Commit

Permalink
Pass -O2 -DNDEBUG to wasi-libc again (WebAssembly#423)
Browse files Browse the repository at this point in the history
I forgot in WebAssembly#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.
  • Loading branch information
alexcrichton authored May 22, 2024
1 parent 307694b commit 68df37e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ WASI_LIBC_MAKEFLAGS = \
AR=$(BUILD_PREFIX)/bin/llvm-ar \
NM=$(BUILD_PREFIX)/bin/llvm-nm \
SYSROOT=$(BUILD_PREFIX)/share/wasi-sysroot \
EXTRA_CFLAGS="$(WASI_SDK_CFLAGS)" \
EXTRA_CFLAGS="$(WASI_SDK_CFLAGS) -O2 -DNDEBUG" \
TARGET_TRIPLE=$(1)

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

0 comments on commit 68df37e

Please sign in to comment.