@@ -334,7 +334,7 @@ function Get-InstallDir($Arch) {
334
334
return " $ImageRoot \$ProgramFilesName \Swift"
335
335
}
336
336
337
- function Get-HostSwiftSDK () {
337
+ function Get-BuildSwiftSDK () {
338
338
return ([IO.Path ]::Combine((Get-InstallDir $HostArch ), " Platforms" , " Windows.platform" , " Developer" , " SDKs" , " Windows.sdk" ))
339
339
}
340
340
@@ -1858,7 +1858,7 @@ function Build-System($Arch) {
1858
1858
- Arch $Arch `
1859
1859
- Platform Windows `
1860
1860
- UseBuiltCompilers C, Swift `
1861
- - SwiftSDK (Get-HostSwiftSDK ) `
1861
+ - SwiftSDK (Get-BuildSwiftSDK ) `
1862
1862
- BuildTargets default `
1863
1863
- Defines @ {
1864
1864
BUILD_SHARED_LIBS = " YES" ;
@@ -1878,7 +1878,7 @@ function Build-ToolsSupportCore($Arch) {
1878
1878
- Arch $Arch `
1879
1879
- Platform Windows `
1880
1880
- UseBuiltCompilers C, Swift `
1881
- - SwiftSDK (Get-HostSwiftSDK ) `
1881
+ - SwiftSDK (Get-BuildSwiftSDK ) `
1882
1882
- BuildTargets default `
1883
1883
- Defines @ {
1884
1884
BUILD_SHARED_LIBS = " YES" ;
@@ -1916,7 +1916,7 @@ function Build-LLBuild($Arch, [switch]$Test = $false) {
1916
1916
- Platform Windows `
1917
1917
- UseMSVCCompilers CXX `
1918
1918
- UseBuiltCompilers Swift `
1919
- - SwiftSDK (Get-HostSwiftSDK ) `
1919
+ - SwiftSDK (Get-BuildSwiftSDK ) `
1920
1920
- BuildTargets $Targets `
1921
1921
- Defines ($TestingDefines + @ {
1922
1922
BUILD_SHARED_LIBS = " YES" ;
@@ -1934,7 +1934,7 @@ function Build-Yams($Arch) {
1934
1934
- Arch $Arch `
1935
1935
- Platform Windows `
1936
1936
- UseBuiltCompilers C, Swift `
1937
- - SwiftSDK (Get-HostSwiftSDK ) `
1937
+ - SwiftSDK (Get-BuildSwiftSDK ) `
1938
1938
- BuildTargets default `
1939
1939
- Defines @ {
1940
1940
BUILD_SHARED_LIBS = " NO" ;
@@ -1950,7 +1950,7 @@ function Build-ArgumentParser($Arch) {
1950
1950
- Arch $Arch `
1951
1951
- Platform Windows `
1952
1952
- UseBuiltCompilers Swift `
1953
- - SwiftSDK (Get-HostSwiftSDK ) `
1953
+ - SwiftSDK (Get-BuildSwiftSDK ) `
1954
1954
- BuildTargets default `
1955
1955
- Defines @ {
1956
1956
BUILD_SHARED_LIBS = " YES" ;
@@ -1966,7 +1966,7 @@ function Build-Driver($Arch) {
1966
1966
- Arch $Arch `
1967
1967
- Platform Windows `
1968
1968
- UseBuiltCompilers C, CXX, Swift `
1969
- - SwiftSDK (Get-HostSwiftSDK ) `
1969
+ - SwiftSDK (Get-BuildSwiftSDK ) `
1970
1970
- BuildTargets default `
1971
1971
- Defines @ {
1972
1972
BUILD_SHARED_LIBS = " YES" ;
@@ -1992,7 +1992,7 @@ function Build-Crypto($Arch) {
1992
1992
- Arch $Arch `
1993
1993
- Platform Windows `
1994
1994
- UseBuiltCompilers Swift `
1995
- - SwiftSDK (Get-HostSwiftSDK ) `
1995
+ - SwiftSDK (Get-BuildSwiftSDK ) `
1996
1996
- BuildTargets default `
1997
1997
- Defines @ {
1998
1998
BUILD_SHARED_LIBS = " NO" ;
@@ -2007,7 +2007,7 @@ function Build-Collections($Arch) {
2007
2007
- Arch $Arch `
2008
2008
- Platform Windows `
2009
2009
- UseBuiltCompilers C, Swift `
2010
- - SwiftSDK (Get-HostSwiftSDK ) `
2010
+ - SwiftSDK (Get-BuildSwiftSDK ) `
2011
2011
- BuildTargets default `
2012
2012
- Defines @ {
2013
2013
BUILD_SHARED_LIBS = " YES" ;
@@ -2020,7 +2020,7 @@ function Build-ASN1($Arch) {
2020
2020
- Bin (Get-HostProjectBinaryCache ASN1) `
2021
2021
- Arch $Arch `
2022
2022
- UseBuiltCompilers C, Swift `
2023
- - SwiftSDK (Get-HostSwiftSDK ) `
2023
+ - SwiftSDK (Get-BuildSwiftSDK ) `
2024
2024
- BuildTargets default `
2025
2025
- Defines @ {
2026
2026
BUILD_SHARED_LIBS = " NO" ;
@@ -2034,7 +2034,7 @@ function Build-Certificates($Arch) {
2034
2034
- Arch $Arch `
2035
2035
- Platform Windows `
2036
2036
- UseBuiltCompilers Swift `
2037
- - SwiftSDK (Get-HostSwiftSDK ) `
2037
+ - SwiftSDK (Get-BuildSwiftSDK ) `
2038
2038
- BuildTargets default `
2039
2039
- Defines @ {
2040
2040
BUILD_SHARED_LIBS = " NO" ;
@@ -2057,7 +2057,7 @@ function Build-PackageManager($Arch) {
2057
2057
- Arch $Arch `
2058
2058
- Platform Windows `
2059
2059
- UseBuiltCompilers C, Swift `
2060
- - SwiftSDK (Get-HostSwiftSDK ) `
2060
+ - SwiftSDK (Get-BuildSwiftSDK ) `
2061
2061
- BuildTargets default `
2062
2062
- Defines @ {
2063
2063
BUILD_SHARED_LIBS = " YES" ;
@@ -2085,7 +2085,7 @@ function Build-Markdown($Arch) {
2085
2085
- Arch $Arch `
2086
2086
- Platform Windows `
2087
2087
- UseBuiltCompilers C, Swift `
2088
- - SwiftSDK (Get-HostSwiftSDK ) `
2088
+ - SwiftSDK (Get-BuildSwiftSDK ) `
2089
2089
- BuildTargets default `
2090
2090
- Defines @ {
2091
2091
BUILD_SHARED_LIBS = " NO" ;
@@ -2103,7 +2103,7 @@ function Build-Format($Arch) {
2103
2103
- Platform Windows `
2104
2104
- UseMSVCCompilers C `
2105
2105
- UseBuiltCompilers Swift `
2106
- - SwiftSDK (Get-HostSwiftSDK ) `
2106
+ - SwiftSDK (Get-BuildSwiftSDK ) `
2107
2107
- BuildTargets default `
2108
2108
- Defines @ {
2109
2109
BUILD_SHARED_LIBS = " YES" ;
@@ -2115,7 +2115,7 @@ function Build-Format($Arch) {
2115
2115
}
2116
2116
2117
2117
function Build-IndexStoreDB ($Arch ) {
2118
- $SDKInstallRoot = (Get-HostSwiftSDK );
2118
+ $SDKInstallRoot = (Get-BuildSwiftSDK );
2119
2119
2120
2120
Build-CMakeProject `
2121
2121
- Src $SourceCache \indexstore- db `
@@ -2140,7 +2140,7 @@ function Build-SourceKitLSP($Arch) {
2140
2140
- Arch $Arch `
2141
2141
- Platform Windows `
2142
2142
- UseBuiltCompilers C, Swift `
2143
- - SwiftSDK (Get-HostSwiftSDK ) `
2143
+ - SwiftSDK (Get-BuildSwiftSDK ) `
2144
2144
- BuildTargets default `
2145
2145
- Defines @ {
2146
2146
SwiftSyntax_DIR = (Get-HostProjectCMakeModules Compilers);
@@ -2177,7 +2177,7 @@ function Install-HostToolchain() {
2177
2177
2178
2178
function Build-Inspect () {
2179
2179
$OutDir = Join-Path - Path $HostArch.BinaryCache - ChildPath swift- inspect
2180
- $SDKInstallRoot = (Get-HostSwiftSDK ) `
2180
+ $SDKInstallRoot = (Get-BuildSwiftSDK ) `
2181
2181
2182
2182
Isolate- EnvVars {
2183
2183
$env: SWIFTCI_USE_LOCAL_DEPS = 1
0 commit comments