From 200cf3b3915d7e308414387628049cc710196992 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Wed, 5 Jun 2024 16:01:27 +0200 Subject: [PATCH] Workaround wasm-opt crash --- src/mono/browser/build/BrowserWasmApp.targets | 4 ++++ src/mono/wasm/build/WasmApp.Common.targets | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mono/browser/build/BrowserWasmApp.targets b/src/mono/browser/build/BrowserWasmApp.targets index 193e0db3d7286..4310617c9927b 100644 --- a/src/mono/browser/build/BrowserWasmApp.targets +++ b/src/mono/browser/build/BrowserWasmApp.targets @@ -271,6 +271,10 @@ $(EmccCompileOptimizationFlag) -O2 $(WasmCompileOptimizationFlag) + + + -O1 + -O2 $(WasmCompileOptimizationFlag) $(EmccLinkOptimizationFlag) diff --git a/src/mono/wasm/build/WasmApp.Common.targets b/src/mono/wasm/build/WasmApp.Common.targets index aae8ed7492fec..8df3969e45f56 100644 --- a/src/mono/wasm/build/WasmApp.Common.targets +++ b/src/mono/wasm/build/WasmApp.Common.targets @@ -501,7 +501,7 @@ - +