File tree 4 files changed +8
-12
lines changed
SourceBuild/content/repo-projects
4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ echo %* | findstr /C:"-pack" >nul
4
4
if %errorlevel% == 0 (
5
5
set SkipBuildingInstallers =
6
6
) else (
7
- REM disable crossgen for inner-loop builds to save a ton of time
8
- set SkipBuildingInstallers = /p:SkipBuildingInstallers=true
9
- set DISABLE_CROSSGEN = true
7
+ REM skip crossgen for inner-loop builds to save a ton of time
8
+ set skipFlags = " /p:SkipUsingCrossgen=true /p:SkipBuildingInstallers=true"
10
9
)
11
- powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -command " & " " " %~dp0 eng\common\build.ps1" " " -restore -build -msbuildEngine dotnet %SkipBuildingInstallers % %* "
10
+ powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -command " & " " " %~dp0 eng\common\build.ps1" " " -restore -build -msbuildEngine dotnet %skipFlags % %* "
12
11
exit /b %ErrorLevel%
Original file line number Diff line number Diff line change 9
9
ScriptRoot=" $( cd -P " $( dirname " $SOURCE " ) " && pwd ) "
10
10
11
11
if [[ " $@ " != * " -pack" * ]]; then
12
- # disable crossgen for inner-loop builds to save a ton of time
13
- export DISABLE_CROSSGEN=true
14
- skipBuildingInstallersFlag=" /p:SkipBuildingInstallers=true"
15
- else
16
- skipBuildingInstallersFlag=
12
+ # skip crossgen for inner-loop builds to save a ton of time
13
+ skipFlags=" /p:SkipUsingCrossgen=true /p:SkipBuildingInstallers=true"
17
14
fi
18
15
19
- . " $ScriptRoot /eng/common/build.sh" --build --restore $skipBuildingInstallersFlag " $@ "
16
+ . " $ScriptRoot /eng/common/build.sh" --build --restore $skipFlags " $@ "
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<!-- Crossgen is currently not supported on the s390x, ppc64le architecture as using mono instead of CoreCLR. -->
5
- <IsCrossgenSupported Condition =" '$(DISABLE_CROSSGEN )' == ' ' and
5
+ <IsCrossgenSupported Condition =" '$(SkipUsingCrossgen )' != 'true ' and
6
6
'$(TargetArchitecture)' != 's390x' and
7
7
'$(TargetArchitecture)' != 'ppc64le' and
8
8
'$(DotNetBuildUseMonoRuntime)' != 'true'" >true</IsCrossgenSupported >
Original file line number Diff line number Diff line change 31
31
<BuildArgs >$(BuildArgs) /p:UsePortableLinuxSharedFramework=false</BuildArgs >
32
32
33
33
<BuildArgs Condition =" '$(PgoInstrument)' == 'true'" >$(BuildArgs) /p:PgoInstrument=true</BuildArgs >
34
- <BuildArgs Condition =" '$(EnablePoison)' == 'true'" >$(BuildArgs) /p:DISABLE_CROSSGEN =true</BuildArgs >
34
+ <BuildArgs Condition =" '$(EnablePoison)' == 'true' or '$(SkipUsingCrossgen)' == 'true' " >$(BuildArgs) /p:SkipUsingCrossgen =true</BuildArgs >
35
35
36
36
<BuildArgs Condition =" '$(BuildWorkloads)' == 'true'" >$(BuildArgs) /p:BuildWorkloads=true</BuildArgs >
37
37
</PropertyGroup >
You can’t perform that action at this time.
0 commit comments