Skip to content

Commit be8822a

Browse files
authored
Rename DISABLE_CROSSGEN (dotnet#48389)
1 parent ad7f7c9 commit be8822a

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

build.cmd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ echo %* | findstr /C:"-pack" >nul
44
if %errorlevel%==0 (
55
set SkipBuildingInstallers=
66
) 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"
109
)
11-
powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -command "& """%~dp0eng\common\build.ps1""" -restore -build -msbuildEngine dotnet %SkipBuildingInstallers% %*"
10+
powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -command "& """%~dp0eng\common\build.ps1""" -restore -build -msbuildEngine dotnet %skipFlags% %*"
1211
exit /b %ErrorLevel%

build.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ done
99
ScriptRoot="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
1010

1111
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"
1714
fi
1815

19-
. "$ScriptRoot/eng/common/build.sh" --build --restore $skipBuildingInstallersFlag "$@"
16+
. "$ScriptRoot/eng/common/build.sh" --build --restore $skipFlags "$@"

src/Layout/redist/targets/Crossgen.targets

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

33
<PropertyGroup>
44
<!-- 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
66
'$(TargetArchitecture)' != 's390x' and
77
'$(TargetArchitecture)' != 'ppc64le' and
88
'$(DotNetBuildUseMonoRuntime)' != 'true'">true</IsCrossgenSupported>

src/SourceBuild/content/repo-projects/sdk.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<BuildArgs>$(BuildArgs) /p:UsePortableLinuxSharedFramework=false</BuildArgs>
3232

3333
<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>
3535

3636
<BuildArgs Condition="'$(BuildWorkloads)' == 'true'">$(BuildArgs) /p:BuildWorkloads=true</BuildArgs>
3737
</PropertyGroup>

0 commit comments

Comments
 (0)