Skip to content

Commit e5a47d6

Browse files
authored
[wasm] Set TrimMode=partial by default, which is equivalent to the older (#72234)
.. `TrimMode=link`. The `TrimMode` values changed in dotnet/sdk#26246 .
1 parent d6af976 commit e5a47d6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/mono/wasm/build/WasmApp.InTree.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<EMSDK_PATH Condition="'$(EMSDK_PATH)' == '' and '$(MonoProjectRoot)' != ''">$([MSBuild]::NormalizeDirectory($(MonoProjectRoot), 'wasm', 'emsdk'))</EMSDK_PATH>
1010
<RunAOTCompilation Condition="'$(RunAOTCompilation)' == ''">false</RunAOTCompilation>
1111
<PublishTrimmed>true</PublishTrimmed>
12-
<TrimMode>link</TrimMode>
12+
<TrimMode>partial</TrimMode>
1313
<RunAnalyzers>false</RunAnalyzers>
1414
</PropertyGroup>
1515
<!-- This is temporary hack for https://github.com/dotnet/runtime/issues/61294 -->

src/mono/wasm/build/WasmApp.LocalBuild.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<PropertyGroup>
2828
<PublishTrimmed Condition="'$(PublishTrimmed)' == ''">true</PublishTrimmed>
29-
<TrimMode>link</TrimMode>
29+
<TrimMode>partial</TrimMode>
3030
</PropertyGroup>
3131

3232
<PropertyGroup Condition="'$(Configuration)' != 'Debug'">

src/mono/wasm/build/WasmApp.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
<WasmGenerateAppBundle Condition="'$(WasmGenerateAppBundle)' == '' and '$(OutputType)' != 'Library'">true</WasmGenerateAppBundle>
107107
<WasmGenerateAppBundle Condition="'$(WasmGenerateAppBundle)' == ''">false</WasmGenerateAppBundle>
108108
<UseAppHost>false</UseAppHost>
109+
<TrimMode Condition="'$(TrimMode)' == ''">partial</TrimMode>
109110

110111
<!-- Temporarily `false`, till sdk gets a fix for supporting the new file -->
111112
<WasmEmitSymbolMap Condition="'$(WasmEmitSymbolMap)' == '' and '$(RunAOTCompilation)' != 'true'">false</WasmEmitSymbolMap>

0 commit comments

Comments
 (0)