From 00dee3c1e6e31e6a4f19386c92ff32b06efca908 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Tue, 5 Jan 2021 04:06:28 -0500 Subject: [PATCH] Add a NOSTRIP make variable to allow the wasm runtime to be compiled without stripping. (#46544) --- src/mono/wasm/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mono/wasm/Makefile b/src/mono/wasm/Makefile index 7f6835d..a1f1752 100644 --- a/src/mono/wasm/Makefile +++ b/src/mono/wasm/Makefile @@ -67,7 +67,11 @@ endif EMCC_DEBUG_FLAGS =-g -Os -s ASSERTIONS=1 -DENABLE_NETCORE=1 -DDEBUG=1 EMCC_RELEASE_FLAGS=-Oz --llvm-opts 2 -DENABLE_NETCORE=1 +ifeq ($(NOSTRIP),) STRIP_CMD=&& $(EMSDK_PATH)/upstream/bin/wasm-opt --strip-dwarf $(NATIVE_BIN_DIR)/dotnet.wasm -o $(NATIVE_BIN_DIR)/dotnet.wasm +else +STRIP_CMD= +endif # # Wasm builds -- 2.7.4