|
22 | 22 | $(_BeforeWasmBuildAppDependsOn); |
23 | 23 | _SetupEmscripten; |
24 | 24 | _SetWasmBuildNativeDefaults; |
25 | | - _SetWasmNativeStripDefault; |
| 25 | + _SetDebugSymbolsPropertiesDefaults; |
26 | 26 | _ReadEmccProps |
27 | 27 | </_BeforeWasmBuildAppDependsOn> |
28 | 28 |
|
|
119 | 119 | <_BoolPropertiesThatTriggerRelinking Include="InvariantTimezone" DefaultValueInRuntimePack="false" /> |
120 | 120 | <_BoolPropertiesThatTriggerRelinking Include="InvariantGlobalization" DefaultValueInRuntimePack="false" /> |
121 | 121 | <_BoolPropertiesThatTriggerRelinking Include="WasmNativeStrip" DefaultValueInRuntimePack="true" /> |
| 122 | + <_BoolPropertiesThatTriggerRelinking Include="WasmNativeDebugSymbols" DefaultValueInRuntimePack="false" /> |
122 | 123 | </ItemGroup> |
123 | 124 |
|
124 | 125 | <PropertyGroup> |
|
160 | 161 | </PropertyGroup> |
161 | 162 | </Target> |
162 | 163 |
|
163 | | - <Target Name="_SetWasmNativeStripDefault" Condition="'$(WasmNativeStrip)' == ''"> |
164 | | - <PropertyGroup> |
| 164 | + <Target Name="_SetDebugSymbolsPropertiesDefaults"> |
| 165 | + <!-- Default with nothing set --> |
| 166 | + <PropertyGroup Condition="'$(WasmNativeDebugSymbols)' == '' and '$(WasmNativeStrip)' == ''"> |
165 | 167 | <!-- Build+relink+config=debug --> |
166 | | - <WasmNativeStrip Condition="'$(WasmBuildingForNestedPublish)' != 'true' and '$(WasmBuildNative)' == 'true' and '$(Configuration)' == 'Debug'">false</WasmNativeStrip> |
| 168 | + <WasmNativeDebugSymbols Condition="'$(WasmBuildingForNestedPublish)' != 'true' and '$(WasmBuildNative)' == 'true' and '$(Configuration)' == 'Debug'">true</WasmNativeDebugSymbols> |
| 169 | + |
| 170 | + <WasmNativeStrip Condition="'$(WasmNativeStrip)' == 'true'">false</WasmNativeStrip> |
| 171 | + <WasmNativeStrip Condition="'$(WasmNativeStrip)' == 'false'">true</WasmNativeStrip> |
| 172 | + </PropertyGroup> |
| 173 | + |
| 174 | + <PropertyGroup> |
| 175 | + <!-- the two properties do not influence each other --> |
| 176 | + <WasmNativeDebugSymbols Condition="'$(WasmNativeDebugSymbols)' == ''">false</WasmNativeDebugSymbols> |
167 | 177 | <WasmNativeStrip Condition="'$(WasmNativeStrip)' == ''">true</WasmNativeStrip> |
168 | 178 | </PropertyGroup> |
169 | 179 | </Target> |
|
178 | 188 | <_MonoAotCrossCompilerPath>@(MonoAotCrossCompiler->WithMetadataValue('RuntimeIdentifier','browser-wasm'))</_MonoAotCrossCompilerPath> |
179 | 189 | <_EmccDefaultFlagsRsp>$([MSBuild]::NormalizePath($(_WasmRuntimePackSrcDir), 'emcc-default.rsp'))</_EmccDefaultFlagsRsp> |
180 | 190 | <_EmccDefaultLinkFlagsRsp>$([MSBuild]::NormalizePath($(_WasmRuntimePackSrcDir), 'emcc-link.rsp'))</_EmccDefaultLinkFlagsRsp> |
181 | | - <WasmNativeDebugSymbols Condition="'$(WasmNativeDebugSymbols)' == ''">true</WasmNativeDebugSymbols> |
182 | 191 | <WasmLinkIcalls Condition="'$(WasmLinkIcalls)' == ''">$(WasmBuildNative)</WasmLinkIcalls> |
183 | 192 |
|
184 | 193 | <_WasmICallTablePath>$(_WasmIntermediateOutputPath)icall-table.h</_WasmICallTablePath> |
|
0 commit comments