|
19 | 19 | - for AOT library tests, we use WasmNativeStrip=false, so we already have symbols
|
20 | 20 | -->
|
21 | 21 | <WasmNativeStrip Condition="'$(WasmNativeStrip)' == ''">false</WasmNativeStrip>
|
22 |
| - <WasmEmitSymbolMap Condition="'$(WasmEmitSymbolMap)' == '' and '$(RunAOTCompilation)' != 'true'">true</WasmEmitSymbolMap> |
| 22 | + <WasmEmitSymbolMap Condition="'$(WasmEmitSymbolMap)' == ''">true</WasmEmitSymbolMap> |
23 | 23 |
|
24 | 24 | <!-- Run only if previous command succeeded -->
|
25 | 25 | <_ShellCommandSeparator Condition="'$(OS)' == 'Windows_NT'">&&</_ShellCommandSeparator>
|
|
168 | 168 | AssemblyFile="$(WasmBuildTasksAssemblyPath)" />
|
169 | 169 |
|
170 | 170 | <Target Name="_BundleAOTTestWasmAppForHelix" DependsOnTargets="PrepareForWasmBuildApp">
|
171 |
| - <PropertyGroup Condition="'$(IsHighAotMemoryUsageTest)' == 'true' and '$(ContinuousIntegrationBuild)' == 'true'"> |
172 |
| - <DisableParallelEmccCompile Condition="'$(DisableParallelEmccCompile)' == ''">true</DisableParallelEmccCompile> |
173 |
| - <EmccLinkOptimizationFlag Condition="'$(EmccLinkOptimizationFlag)' == ''">-O2</EmccLinkOptimizationFlag> |
174 |
| - </PropertyGroup> |
175 |
| - |
176 | 171 | <PropertyGroup>
|
177 | 172 | <_MainAssemblyPath Condition="'%(WasmAssembliesToBundle.FileName)' == $(AssemblyName) and '%(WasmAssembliesToBundle.Extension)' == '.dll'">%(WasmAssembliesToBundle.Identity)</_MainAssemblyPath>
|
178 | 173 | <RuntimeConfigFilePath>$([System.IO.Path]::ChangeExtension($(_MainAssemblyPath), '.runtimeconfig.json'))</RuntimeConfigFilePath>
|
179 |
| - <EmccLinkOptimizationFlag Condition="'$(EmccLinkOptimizationFlag)' == ''">-O1 -Wl,-O0 -Wl,-lto-O0</EmccLinkOptimizationFlag> |
180 |
| - <WasmNativeStrip>true</WasmNativeStrip> |
181 | 174 | </PropertyGroup>
|
182 | 175 |
|
183 | 176 | <Error Text="Item WasmAssembliesToBundle is empty. This is likely an authoring error." Condition="@(WasmAssembliesToBundle->Count()) == 0" />
|
|
215 | 208 | <_WasmPropertyNames Include="_WasmDevel" />
|
216 | 209 | <_WasmPropertyNames Include="_WasmStrictVersionMatch" />
|
217 | 210 | <_WasmPropertyNames Include="WasmEmitSymbolMap" />
|
| 211 | + <_WasmPropertyNames Include="WasmNativeDebugSymbols" /> |
| 212 | + <_WasmPropertyNames Include="EmccExtraCFlags" /> |
| 213 | + <_WasmPropertyNames Include="EmccExtraLDFlags" /> |
218 | 214 |
|
219 | 215 | <_WasmPropertiesToPass
|
220 | 216 | Include="$(%(_WasmPropertyNames.Identity))"
|
|
255 | 251 | <WasmMainJSPath Condition="'$(WasmMainJSPath)' == ''">$(MonoProjectRoot)\wasm\test-main.js</WasmMainJSPath>
|
256 | 252 | <WasmInvariantGlobalization>$(InvariantGlobalization)</WasmInvariantGlobalization>
|
257 | 253 | <WasmGenerateRunV8Script>true</WasmGenerateRunV8Script>
|
258 |
| - |
259 |
| - <WasmNativeDebugSymbols Condition="'$(DebuggerSupport)' == 'true' and '$(WasmNativeDebugSymbols)' == ''">true</WasmNativeDebugSymbols> |
260 | 254 | <WasmDebugLevel Condition="'$(DebuggerSupport)' == 'true' and '$(WasmDebugLevel)' == ''">-1</WasmDebugLevel>
|
261 | 255 | </PropertyGroup>
|
262 | 256 |
|
| 257 | + <PropertyGroup Condition="'$(BuildAOTTestsOnHelix)' == 'true' and '$(IsHighAotMemoryUsageTest)' == 'true' and '$(ContinuousIntegrationBuild)' == 'true'"> |
| 258 | + <DisableParallelEmccCompile Condition="'$(DisableParallelEmccCompile)' == ''">true</DisableParallelEmccCompile> |
| 259 | + <EmccLinkOptimizationFlag Condition="'$(EmccLinkOptimizationFlag)' == ''">-O2</EmccLinkOptimizationFlag> |
| 260 | + </PropertyGroup> |
| 261 | + |
| 262 | + <PropertyGroup> |
| 263 | + <EmccLinkOptimizationFlag Condition="'$(EmccLinkOptimizationFlag)' == ''">-O1 -Wl,-O0 -Wl,-lto-O0</EmccLinkOptimizationFlag> |
| 264 | + |
| 265 | + <!-- Use symbol map instead of generating full dwarf info --> |
| 266 | + <WasmNativeDebugSymbols Condition="'$(WasmNativeDebugSymbols)' == ''">false</WasmNativeDebugSymbols> |
| 267 | + <WasmNativeStrip Condition="'$(WasmNativeStrip)' == ''">true</WasmNativeStrip> |
| 268 | + <EmccExtraCFlags>$(EmccExtraCFlags) -g2</EmccExtraCFlags> |
| 269 | + <EmccExtraLDFlags>$(EmccExtraLDFlags) --profiling-funcs</EmccExtraLDFlags> |
| 270 | + </PropertyGroup> |
| 271 | + |
263 | 272 | <ItemGroup Condition="'$(IncludeSatelliteAssembliesInVFS)' == 'true' and '$(BuildAOTTestsOnHelix)' != 'true'">
|
264 | 273 | <_SatelliteAssemblies Include="$(PublishDir)*\*.resources.dll" />
|
265 | 274 | <_SatelliteAssemblies CultureName="$([System.IO.Directory]::GetParent('%(Identity)').Name)" />
|
|
0 commit comments