@@ -241,7 +241,6 @@ $ArchX64 = @{
241
241
LLVMTarget = " x86_64-unknown-windows-msvc" ;
242
242
CMakeName = " AMD64" ;
243
243
BinaryDir = " bin64" ;
244
- ExperimentalSDKInstallRoot = " $BinaryCache \x64\Windows.platform\Developer\SDKs\WindowsExperimental.sdk" ;
245
244
XCTestInstallRoot = " $BinaryCache \x64\Windows.platform\Developer\Library\XCTest-development" ;
246
245
SwiftTestingInstallRoot = " $BinaryCache \x64\Windows.platform\Developer\Library\Testing-development" ;
247
246
ToolchainInstallRoot = " $BinaryCache \x64\toolchains\$ProductVersion +$Variant " ;
@@ -255,7 +254,6 @@ $ArchX86 = @{
255
254
LLVMTarget = " i686-unknown-windows-msvc" ;
256
255
CMakeName = " i686" ;
257
256
BinaryDir = " bin32" ;
258
- ExperimentalSDKInstallRoot = " $BinaryCache \x86\Windows.platform\Developer\SDKs\WindowsExperimental.sdk" ;
259
257
XCTestInstallRoot = " $BinaryCache \x86\Windows.platform\Developer\Library\XCTest-development" ;
260
258
SwiftTestingInstallRoot = " $BinaryCache \x86\Windows.platform\Developer\Library\Testing-development" ;
261
259
Cache = @ {};
@@ -268,7 +266,6 @@ $ArchARM64 = @{
268
266
LLVMTarget = " aarch64-unknown-windows-msvc" ;
269
267
CMakeName = " ARM64" ;
270
268
BinaryDir = " bin64a" ;
271
- ExperimentalSDKInstallRoot = " $BinaryCache \arm64\Windows.platform\Developer\SDKs\WindowsExperimental.sdk" ;
272
269
XCTestInstallRoot = " $BinaryCache \arm64\Windows.platform\Developer\Library\XCTest-development" ;
273
270
ToolchainInstallRoot = " $BinaryCache \arm64\toolchains\$ProductVersion +$Variant " ;
274
271
SwiftTestingInstallRoot = " $BinaryCache \arm64\Windows.platform\Developer\Library\Testing-development" ;
@@ -282,7 +279,6 @@ $AndroidARM64 = @{
282
279
LLVMName = " aarch64" ;
283
280
LLVMTarget = " aarch64-unknown-linux-android$AndroidAPILevel " ;
284
281
ShortName = " arm64" ;
285
- ExperimentalSDKInstallRoot = " $BinaryCache \arm64\Android.platform\Developer\SDKs\AndroidExperimental.sdk" ;
286
282
XCTestInstallRoot = " $BinaryCache \arm64\Android.platform\Developer\Library\XCTest-development" ;
287
283
SwiftTestingInstallRoot = " $BinaryCache \arm64\Android.platform\Developer\Library\Testing-development" ;
288
284
Cache = @ {};
@@ -295,7 +291,6 @@ $AndroidARMv7 = @{
295
291
LLVMName = " armv7" ;
296
292
LLVMTarget = " armv7-unknown-linux-androideabi$AndroidAPILevel " ;
297
293
ShortName = " armv7" ;
298
- ExperimentalSDKInstallRoot = " $BinaryCache \arm64\Android.platform\Developer\SDKs\AndroidExperimental.sdk" ;
299
294
XCTestInstallRoot = " $BinaryCache \armv7\Android.platform\Developer\Library\XCTest-development" ;
300
295
SwiftTestingInstallRoot = " $BinaryCache \armv7\Android.platform\Developer\Library\Testing-development" ;
301
296
Cache = @ {};
@@ -308,7 +303,6 @@ $AndroidX86 = @{
308
303
LLVMName = " i686" ;
309
304
LLVMTarget = " i686-unknown-linux-android$AndroidAPILevel " ;
310
305
ShortName = " x86" ;
311
- ExperimentalSDKInstallRoot = " $BinaryCache \arm64\Android.platform\Developer\SDKs\AndroidExperimental.sdk" ;
312
306
XCTestInstallRoot = " $BinaryCache \x86\Android.platform\Developer\Library\XCTest-development" ;
313
307
SwiftTestingInstallRoot = " $BinaryCache \x86\Android.platform\Developer\Library\Testing-development" ;
314
308
Cache = @ {};
@@ -321,7 +315,6 @@ $AndroidX64 = @{
321
315
LLVMName = " x86_64" ;
322
316
LLVMTarget = " x86_64-unknown-linux-android$AndroidAPILevel " ;
323
317
ShortName = " x64" ;
324
- ExperimentalSDKInstallRoot = " $BinaryCache \arm64\Android.platform\Developer\SDKs\AndroidExperimental.sdk" ;
325
318
XCTestInstallRoot = " $BinaryCache \x64\Android.platform\Developer\Library\XCTest-development" ;
326
319
SwiftTestingInstallRoot = " $BinaryCache \x64\Android.platform\Developer\Library\Testing-development" ;
327
320
Cache = @ {};
@@ -1024,9 +1017,9 @@ function Get-SwiftSDK {
1024
1017
(
1025
1018
[Parameter (Position = 0 , Mandatory = $true )]
1026
1019
[Platform ] $Platform ,
1027
- [switch ] $Experimental = $false
1020
+ [string ] $Identifier = $Platform .ToString ()
1028
1021
)
1029
- return ([IO.Path ]::Combine((Get-PlatformRoot $Platform ), " Developer" , " SDKs" , " ${Platform } .sdk" ))
1022
+ return ([IO.Path ]::Combine((Get-PlatformRoot $Platform ), " Developer" , " SDKs" , " ${Identifier } .sdk" ))
1030
1023
}
1031
1024
1032
1025
function Build-CMakeProject {
@@ -2153,7 +2146,7 @@ function Build-ExperimentalRuntime {
2153
2146
Build-CMakeProject `
2154
2147
- Src $SourceCache \swift\Runtimes\Core `
2155
2148
- Bin (Get-TargetProjectBinaryCache $Arch ExperimentalRuntime) `
2156
- - InstallTo " $ ( $Arch .ExperimentalSDKInstallRoot ) \usr" `
2149
+ - InstallTo " $ ( Get-SwiftSDK $Platform - Identifier " ${Platform} Experimental " ) \usr" `
2157
2150
- Arch $Arch `
2158
2151
- Platform $Platform `
2159
2152
- UseBuiltCompilers C, CXX, Swift `
@@ -2265,7 +2258,7 @@ function Build-Foundation {
2265
2258
Build-CMakeProject `
2266
2259
- Src $SourceCache \swift- corelibs- foundation `
2267
2260
- Bin $FoundationBinaryCache `
2268
- - InstallTo $ (if ($Static ) { " $ ( $Arch .ExperimentalSDKInstallRoot ) \usr" } else { " $ ( Get-SwiftSDK $Platform ) \usr" }) `
2261
+ - InstallTo $ (if ($Static ) { " $ ( Get-SwiftSDK $Platform - Identifier " ${Platform} Experimental " ) \usr" } else { " $ ( Get-SwiftSDK $Platform ) \usr" }) `
2269
2262
- Arch $Arch `
2270
2263
- Platform $Platform `
2271
2264
- UseBuiltCompilers ASM, C, CXX, Swift `
0 commit comments