Add a NOSTRIP make variable to allow the wasm runtime to be compiled without strippin...
authorZoltan Varga <vargaz@gmail.com>
Tue, 5 Jan 2021 09:06:28 +0000 (04:06 -0500)
committerGitHub <noreply@github.com>
Tue, 5 Jan 2021 09:06:28 +0000 (10:06 +0100)
src/mono/wasm/Makefile

index 7f6835d..a1f1752 100644 (file)
@@ -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