Skip to content

Commit

Permalink
Workaround wasm-opt crash
Browse files Browse the repository at this point in the history
  • Loading branch information
radekdoulik committed Jun 5, 2024
1 parent 3593c41 commit 4530edf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mono/browser/browser.proj
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@
$(ICULibDir)/libicudata.a;
$(BrowserProjectRoot)runtime/hybrid-globalization/segmentation-rules.json" />
<ICULibFiles Include="$(ICULibDir)/*.dat" />

<!-- fixme https://github.com/WebAssembly/binaryen/issues/6639 -->
<WasmOptConfigurationFlags Include="-O1" Condition="'$(OS)' == 'Windows_NT'" />
</ItemGroup>
<PropertyGroup>
<PInvokeTableFile>$(ArtifactsObjDir)wasm/pinvoke-table.h</PInvokeTableFile>
Expand All @@ -382,6 +385,9 @@
<CMakeConfigurationLinkFlags Condition="'$(WasmEnableThreads)' == 'true'">$(CMakeConfigurationLinkFlags) -Wno-pthreads-mem-growth</CMakeConfigurationLinkFlags>
<CMakeConfigurationLinkFlags >$(CMakeConfigurationLinkFlags) --emit-symbol-map</CMakeConfigurationLinkFlags>

<!-- fixme https://github.com/WebAssembly/binaryen/issues/6639 -->
<CMakeConfigurationLinkFlags Condition="'$(OS)' == 'Windows_NT'">$(CMakeConfigurationLinkFlags) -O1</CMakeConfigurationLinkFlags>

<CMakeConfigurationEmsdkPath Condition="'$(Configuration)' == 'Release'"> -DEMSDK_PATH=&quot;$(EMSDK_PATH.TrimEnd('\/').Replace('\','/'))&quot;</CMakeConfigurationEmsdkPath>

<CMakeBuildRuntimeConfigureCmd>emcmake cmake $(MSBuildThisFileDirectory)runtime</CMakeBuildRuntimeConfigureCmd>
Expand Down

0 comments on commit 4530edf

Please sign in to comment.