From 9a5f0c79dd8a13ac976e7e8f8a5737b89b8e183e Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Mon, 19 Jul 2021 11:57:20 -0500 Subject: [PATCH] Link with EmccCompileOptimizationFlag==-Oz by default in release --- src/mono/wasm/build/WasmApp.Native.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/wasm/build/WasmApp.Native.targets b/src/mono/wasm/build/WasmApp.Native.targets index 375747cd4e6e5..48bafb1d42839 100644 --- a/src/mono/wasm/build/WasmApp.Native.targets +++ b/src/mono/wasm/build/WasmApp.Native.targets @@ -155,7 +155,7 @@ <_EmccOptimizationFlagDefault Condition="'$(_EmccOptimizationFlagDefault)' == ''">-Oz $(_EmccOptimizationFlagDefault) - -O0 -s ASSERTIONS=$(_EmccAssertionLevelDefault) + $(EmccCompileOptimizationFlag) <_EmccCompileRsp>$(_WasmIntermediateOutputPath)emcc-compile.rsp