Skip to content

Commit

Permalink
Delete __DoCrossgen2 (#61582)
Browse files Browse the repository at this point in the history
`__DoCrossgen2` appears to be redundant with `__TestBuildMode=crossgen2`.
  • Loading branch information
MichalStrehovsky authored Nov 15, 2021
1 parent 89d967b commit ebf4451
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/tests/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ set __SkipManaged=
set __SkipTestWrappers=
set __BuildTestWrappersOnly=
set __SkipNative=
set __DoCrossgen2=
set __CompositeBuildMode=
set __TestBuildMode=
set __CreatePdb=
Expand Down Expand Up @@ -115,8 +114,8 @@ if /i "%1" == "buildtestwrappersonly" (set __SkipNative=1&set __SkipManaged=1&se
if /i "%1" == "-cmakeargs" (set __CMakeArgs="%2=%3" %__CMakeArgs%&set "processedArgs=!processedArgs! %1 %2=%3"&shift&shift&goto Arg_Loop)
if /i "%1" == "-msbuild" (set __Ninja=0&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "buildagainstpackages" (echo error: Remove /BuildAgainstPackages switch&&exit /b1)
if /i "%1" == "crossgen2" (set __DoCrossgen2=1&set __TestBuildMode=crossgen2&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "composite" (set __CompositeBuildMode=1&set __DoCrossgen2=1&set __TestBuildMode=crossgen2&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "crossgen2" (set __TestBuildMode=crossgen2&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "composite" (set __CompositeBuildMode=1&set __TestBuildMode=crossgen2&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "pdb" (set __CreatePdb=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "perfmap" (set __CreatePerfmap=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "Exclude" (set __Exclude=%2&set processedArgs=!processedArgs! %1 %2&shift&shift&goto Arg_Loop)
Expand Down
2 changes: 1 addition & 1 deletion src/tests/build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@

<Target Name="CrossgenFramework"
DependsOnTargets="GenerateLayout"
Condition="'$(__BuildTestWrappersOnly)' != '1' and '$(__CopyNativeTestBinaries)' != '1' and '$(__DoCrossgen2)' == '1' and !$(MonoAot) and !$(MonoFullAot)" >
Condition="'$(__BuildTestWrappersOnly)' != '1' and '$(__CopyNativeTestBinaries)' != '1' and '$(__TestBuildMode)' == 'crossgen2' and !$(MonoAot) and !$(MonoFullAot)" >

<PropertyGroup>
<CrossgenDir>$(__BinDir)</CrossgenDir>
Expand Down
4 changes: 0 additions & 4 deletions src/tests/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ build_Tests()
export __CopyNativeProjectsAfterCombinedTestBuild
export __CopyNativeTestBinaries
export __Priority
export __DoCrossgen2
export __CreatePerfmap
export __CompositeBuildMode
export __BuildTestWrappersOnly
Expand Down Expand Up @@ -188,13 +187,11 @@ handle_arguments_local() {
;;

crossgen2|-crossgen2)
__DoCrossgen2=1
__TestBuildMode=crossgen2
;;

composite|-composite)
__CompositeBuildMode=1
__DoCrossgen2=1
__TestBuildMode=crossgen2
;;

Expand Down Expand Up @@ -294,7 +291,6 @@ __CopyNativeProjectsAfterCombinedTestBuild=true
__CopyNativeTestBinaries=0
__CrossBuild=0
__DistroRid=""
__DoCrossgen2=
__CompositeBuildMode=
__CreatePerfmap=
__TestBuildMode=
Expand Down

0 comments on commit ebf4451

Please sign in to comment.