From 04b16aead5f6112bf3fc935f8b1d4a14c50fa210 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 22 May 2024 10:09:03 -0700 Subject: [PATCH] Pass `-O2 -DNDEBUG` to wasi-libc again 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 04fb23fa4..da92c1eab 100644 --- a/Makefile +++ b/Makefile @@ -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