Skip to content

Commit 11027b8

Browse files
authored
utils: remove unused variables in build.ps1. (#79531)
1 parent 51ff672 commit 11027b8

File tree

1 file changed

+14
-24
lines changed

1 file changed

+14
-24
lines changed

utils/build.ps1

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,8 +1508,6 @@ function Get-CMarkBinaryCache($Arch) {
15081508
}
15091509

15101510
function Build-CMark($Arch) {
1511-
$ArchName = $Arch.LLVMName
1512-
15131511
Build-CMakeProject `
15141512
-Src $SourceCache\cmark `
15151513
-Bin (Get-CMarkBinaryCache $Arch) `
@@ -1898,8 +1896,6 @@ function Build-XML2([Platform]$Platform, $Arch) {
18981896
}
18991897

19001898
function Build-RegsGen2($Arch) {
1901-
$ArchName = $Arch.LLVMName
1902-
19031899
Build-CMakeProject `
19041900
-Src $SourceCache\ds2\Tools\RegsGen2 `
19051901
-Bin "$(Get-BuildProjectBinaryCache RegsGen2)" `
@@ -2111,26 +2107,20 @@ function Build-ExperimentalRuntime {
21112107
Isolate-EnvVars {
21122108
$env:Path = "$(Get-CMarkBinaryCache $Arch)\src;$(Get-PinnedToolchainRuntime);${env:Path}"
21132109

2114-
$CompilersBinaryCache = if ($IsCrossCompiling) {
2115-
Get-BuildProjectBinaryCache Compilers
2116-
} else {
2117-
Get-HostProjectBinaryCache Compilers
2118-
}
2119-
2120-
Build-CMakeProject `
2121-
-Src $SourceCache\swift\Runtimes\Core `
2122-
-Bin (Get-TargetProjectBinaryCache $Arch ExperimentalRuntime) `
2123-
-InstallTo "$($Arch.ExperimentalSDKInstallRoot)\usr" `
2124-
-Arch $Arch `
2125-
-Platform $Platform `
2126-
-UseBuiltCompilers C,CXX,Swift `
2127-
-UseGNUDriver `
2128-
-Defines @{
2129-
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
2130-
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
2131-
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
2132-
dispatch_DIR = "$(Get-TargetProjectBinaryCache $Arch Dispatch)\cmake\modules";
2133-
}
2110+
Build-CMakeProject `
2111+
-Src $SourceCache\swift\Runtimes\Core `
2112+
-Bin (Get-TargetProjectBinaryCache $Arch ExperimentalRuntime) `
2113+
-InstallTo "$($Arch.ExperimentalSDKInstallRoot)\usr" `
2114+
-Arch $Arch `
2115+
-Platform $Platform `
2116+
-UseBuiltCompilers C,CXX,Swift `
2117+
-UseGNUDriver `
2118+
-Defines @{
2119+
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
2120+
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
2121+
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
2122+
dispatch_DIR = "$(Get-TargetProjectBinaryCache $Arch Dispatch)\cmake\modules";
2123+
}
21342124
}
21352125
}
21362126

0 commit comments

Comments
 (0)