From a8d3e0c25d1c58b1f0c02d3d1e72598db842f472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Mon, 15 Nov 2021 10:47:13 +0900 Subject: [PATCH] Delete `__DoCrossgen2` `__DoCrossgen2` appears to be redundant with `__TestBuildMode=crossgen2`. --- src/tests/build.cmd | 5 ++--- src/tests/build.proj | 2 +- src/tests/build.sh | 4 ---- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/tests/build.cmd b/src/tests/build.cmd index 46e5ea5eb3079f..9e0cf478808f95 100644 --- a/src/tests/build.cmd +++ b/src/tests/build.cmd @@ -53,7 +53,6 @@ set __SkipManaged= set __SkipTestWrappers= set __BuildTestWrappersOnly= set __SkipNative= -set __DoCrossgen2= set __CompositeBuildMode= set __TestBuildMode= set __CreatePdb= @@ -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) diff --git a/src/tests/build.proj b/src/tests/build.proj index 7a161270572bdb..2c0489f0822ffb 100644 --- a/src/tests/build.proj +++ b/src/tests/build.proj @@ -488,7 +488,7 @@ + Condition="'$(__BuildTestWrappersOnly)' != '1' and '$(__CopyNativeTestBinaries)' != '1' and '$(__TestBuildMode)' == 'crossgen2' and !$(MonoAot) and !$(MonoFullAot)" > $(__BinDir) diff --git a/src/tests/build.sh b/src/tests/build.sh index 67117ba14727a1..a462005fc21231 100755 --- a/src/tests/build.sh +++ b/src/tests/build.sh @@ -99,7 +99,6 @@ build_Tests() export __CopyNativeProjectsAfterCombinedTestBuild export __CopyNativeTestBinaries export __Priority - export __DoCrossgen2 export __CreatePerfmap export __CompositeBuildMode export __BuildTestWrappersOnly @@ -188,13 +187,11 @@ handle_arguments_local() { ;; crossgen2|-crossgen2) - __DoCrossgen2=1 __TestBuildMode=crossgen2 ;; composite|-composite) __CompositeBuildMode=1 - __DoCrossgen2=1 __TestBuildMode=crossgen2 ;; @@ -294,7 +291,6 @@ __CopyNativeProjectsAfterCombinedTestBuild=true __CopyNativeTestBinaries=0 __CrossBuild=0 __DistroRid="" -__DoCrossgen2= __CompositeBuildMode= __CreatePerfmap= __TestBuildMode=