|
38 | 38 | </PropertyGroup>
|
39 | 39 |
|
40 | 40 | <PropertyGroup Condition="'$(BuildAOTTestsOnHelix)' == 'true'">
|
41 |
| - <_AOTBuildCommand>dotnet msbuild publish/ProxyProjectForAOTOnHelix.proj /bl:$XHARNESS_OUT/AOTBuild.binlog</_AOTBuildCommand> |
| 41 | + <_AOTBuildCommand>_buildAOTFunc publish/ProxyProjectForAOTOnHelix.proj $XHARNESS_OUT/AOTBuild.binlog</_AOTBuildCommand> |
42 | 42 |
|
43 | 43 | <!-- running aot-helix tests locally, so we can test with the same project file as CI -->
|
44 | 44 | <_AOTBuildCommand Condition="'$(ContinuousIntegrationBuild)' != 'true'">$(_AOTBuildCommand) /p:RuntimeSrcDir=$(RepoRoot) /p:RuntimeConfig=$(Configuration)</_AOTBuildCommand>
|
45 | 45 |
|
46 |
| - <_AOTBuildCommand>$(_AOTBuildCommand) /p:RunAOTCompilation=$(RunAOTCompilation) /p:EmccLinkOptimizationFlag='-Oz -Wl%252C-O0 -Wl%252C-lto-O0'</_AOTBuildCommand> |
| 46 | + <_AOTBuildCommand>$(_AOTBuildCommand) /p:RunAOTCompilation=$(RunAOTCompilation)</_AOTBuildCommand> |
47 | 47 | <_AOTBuildCommand>$(_AOTBuildCommand) && cd wasm_build/AppBundle</_AOTBuildCommand>
|
48 | 48 |
|
49 | 49 | <RunScriptCommand Condition="'$(RunScriptCommand)' == ''">$(_AOTBuildCommand)</RunScriptCommand>
|
|
87 | 87 | AssemblyFile="$(WasmBuildTasksAssemblyPath)" />
|
88 | 88 |
|
89 | 89 | <Target Name="_BundleAOTTestWasmAppForHelix" DependsOnTargets="PrepareForWasmBuildApp">
|
| 90 | + <PropertyGroup Condition="'$(IsHighAotMemoryUsageTest)' == 'true' and '$(ContinuousIntegrationBuild)' == 'true'"> |
| 91 | + <DisableParallelEmccCompile Condition="'$(DisableParallelEmccCompile)' == ''">true</DisableParallelEmccCompile> |
| 92 | + <EmccLinkOptimizationFlag Condition="'$(EmccLinkOptimizationFlag)' == ''">-O2</EmccLinkOptimizationFlag> |
| 93 | + </PropertyGroup> |
| 94 | + |
90 | 95 | <PropertyGroup>
|
91 | 96 | <_MainAssemblyPath Condition="'%(WasmAssembliesToBundle.FileName)' == $(AssemblyName) and '%(WasmAssembliesToBundle.Extension)' == '.dll'">%(WasmAssembliesToBundle.Identity)</_MainAssemblyPath>
|
92 | 97 | <RuntimeConfigFilePath>$([System.IO.Path]::ChangeExtension($(_MainAssemblyPath), '.runtimeconfig.json'))</RuntimeConfigFilePath>
|
| 98 | + <EmccLinkOptimizationFlag Condition="'$(EmccLinkOptimizationFlag)' == ''">-Oz -Wl%252C-O0 -Wl%252C-lto-O0</EmccLinkOptimizationFlag> |
93 | 99 | </PropertyGroup>
|
94 | 100 |
|
95 | 101 | <Error Text="Item WasmAssembliesToBundle is empty. This is likely an authoring error." Condition="@(WasmAssembliesToBundle->Count()) == 0" />
|
|
111 | 117 | <!-- To recreate the original project on helix, we need to set the wasm properties also, same as the
|
112 | 118 | library test project. Eg. $(InvariantGlobalization) -->
|
113 | 119 | <ItemGroup>
|
114 |
| - <_WasmPropertyNames Include="InvariantGlobalization" /> |
115 | 120 | <_WasmPropertyNames Include="AOTMode" />
|
116 |
| - <_WasmPropertyNames Include="WasmDebugLevel" /> |
| 121 | + <_WasmPropertyNames Include="AssemblyName" /> |
| 122 | + <_WasmPropertyNames Include="DisableParallelAot" /> |
| 123 | + <_WasmPropertyNames Include="DisableParallelEmccCompile" /> |
| 124 | + <_WasmPropertyNames Include="EmccCompileOptimizationFlag" /> |
| 125 | + <_WasmPropertyNames Include="EmccLinkOptimizationFlag" /> |
| 126 | + <_WasmPropertyNames Include="IncludeSatelliteAssembliesInVFS" /> |
| 127 | + <_WasmPropertyNames Include="InvariantGlobalization" /> |
117 | 128 | <_WasmPropertyNames Include="WasmBuildNative" />
|
118 |
| - <_WasmPropertyNames Include="_WasmDevel" /> |
119 |
| - <_WasmPropertyNames Include="WasmLinkIcalls" /> |
| 129 | + <_WasmPropertyNames Include="WasmDebugLevel" /> |
120 | 130 | <_WasmPropertyNames Include="WasmDedup" />
|
121 |
| - <_WasmPropertyNames Include="IncludeSatelliteAssembliesInVFS" /> |
122 |
| - <_WasmPropertyNames Include="AssemblyName" /> |
| 131 | + <_WasmPropertyNames Include="WasmLinkIcalls" /> |
| 132 | + <_WasmPropertyNames Include="WasmNativeStrip" /> |
| 133 | + <_WasmPropertyNames Include="_WasmDevel" /> |
123 | 134 |
|
124 | 135 | <_WasmPropertiesToPass
|
125 | 136 | Include="$(%(_WasmPropertyNames.Identity))"
|
|
159 | 170 | <WasmDebugLevel Condition="'$(DebuggerSupport)' == 'true' and '$(WasmDebugLevel)' == ''">-1</WasmDebugLevel>
|
160 | 171 | </PropertyGroup>
|
161 | 172 |
|
162 |
| - <ItemGroup Condition="'$(IncludeSatelliteAssembliesInVFS)' == 'true'"> |
| 173 | + <ItemGroup Condition="'$(IncludeSatelliteAssembliesInVFS)' == 'true' and '$(BuildAOTTestsOnHelix)' != 'true'"> |
163 | 174 | <_SatelliteAssemblies Include="$(PublishDir)*\*.resources.dll" />
|
164 | 175 | <_SatelliteAssemblies CultureName="$([System.IO.Directory]::GetParent('%(Identity)').Name)" />
|
165 | 176 | <_SatelliteAssemblies TargetPath="%(CultureName)\%(FileName)%(Extension)" />
|
|
0 commit comments