@@ -238,7 +238,6 @@ $ArchX64 = @{
238
238
LLVMTarget = " x86_64-unknown-windows-msvc" ;
239
239
CMakeName = " AMD64" ;
240
240
BinaryDir = " bin64" ;
241
- ExperimentalSDKInstallRoot = " $BinaryCache \x64\Windows.platform\Developer\SDKs\WindowsExperimental.sdk" ;
242
241
XCTestInstallRoot = " $BinaryCache \x64\Windows.platform\Developer\Library\XCTest-development" ;
243
242
SwiftTestingInstallRoot = " $BinaryCache \x64\Windows.platform\Developer\Library\Testing-development" ;
244
243
ToolchainInstallRoot = " $BinaryCache \x64\toolchains\$ProductVersion +$Variant " ;
@@ -252,7 +251,6 @@ $ArchX86 = @{
252
251
LLVMTarget = " i686-unknown-windows-msvc" ;
253
252
CMakeName = " i686" ;
254
253
BinaryDir = " bin32" ;
255
- ExperimentalSDKInstallRoot = " $BinaryCache \x86\Windows.platform\Developer\SDKs\WindowsExperimental.sdk" ;
256
254
XCTestInstallRoot = " $BinaryCache \x86\Windows.platform\Developer\Library\XCTest-development" ;
257
255
SwiftTestingInstallRoot = " $BinaryCache \x86\Windows.platform\Developer\Library\Testing-development" ;
258
256
Cache = @ {};
@@ -265,7 +263,6 @@ $ArchARM64 = @{
265
263
LLVMTarget = " aarch64-unknown-windows-msvc" ;
266
264
CMakeName = " ARM64" ;
267
265
BinaryDir = " bin64a" ;
268
- ExperimentalSDKInstallRoot = " $BinaryCache \arm64\Windows.platform\Developer\SDKs\WindowsExperimental.sdk" ;
269
266
XCTestInstallRoot = " $BinaryCache \arm64\Windows.platform\Developer\Library\XCTest-development" ;
270
267
ToolchainInstallRoot = " $BinaryCache \arm64\toolchains\$ProductVersion +$Variant " ;
271
268
SwiftTestingInstallRoot = " $BinaryCache \arm64\Windows.platform\Developer\Library\Testing-development" ;
@@ -279,7 +276,6 @@ $AndroidARM64 = @{
279
276
LLVMName = " aarch64" ;
280
277
LLVMTarget = " aarch64-unknown-linux-android$AndroidAPILevel " ;
281
278
ShortName = " arm64" ;
282
- ExperimentalSDKInstallRoot = " $BinaryCache \arm64\Android.platform\Developer\SDKs\AndroidExperimental.sdk" ;
283
279
XCTestInstallRoot = " $BinaryCache \arm64\Android.platform\Developer\Library\XCTest-development" ;
284
280
SwiftTestingInstallRoot = " $BinaryCache \arm64\Android.platform\Developer\Library\Testing-development" ;
285
281
Cache = @ {};
@@ -292,7 +288,6 @@ $AndroidARMv7 = @{
292
288
LLVMName = " armv7" ;
293
289
LLVMTarget = " armv7-unknown-linux-androideabi$AndroidAPILevel " ;
294
290
ShortName = " armv7" ;
295
- ExperimentalSDKInstallRoot = " $BinaryCache \arm64\Android.platform\Developer\SDKs\AndroidExperimental.sdk" ;
296
291
XCTestInstallRoot = " $BinaryCache \armv7\Android.platform\Developer\Library\XCTest-development" ;
297
292
SwiftTestingInstallRoot = " $BinaryCache \armv7\Android.platform\Developer\Library\Testing-development" ;
298
293
Cache = @ {};
@@ -305,7 +300,6 @@ $AndroidX86 = @{
305
300
LLVMName = " i686" ;
306
301
LLVMTarget = " i686-unknown-linux-android$AndroidAPILevel " ;
307
302
ShortName = " x86" ;
308
- ExperimentalSDKInstallRoot = " $BinaryCache \arm64\Android.platform\Developer\SDKs\AndroidExperimental.sdk" ;
309
303
XCTestInstallRoot = " $BinaryCache \x86\Android.platform\Developer\Library\XCTest-development" ;
310
304
SwiftTestingInstallRoot = " $BinaryCache \x86\Android.platform\Developer\Library\Testing-development" ;
311
305
Cache = @ {};
@@ -318,7 +312,6 @@ $AndroidX64 = @{
318
312
LLVMName = " x86_64" ;
319
313
LLVMTarget = " x86_64-unknown-linux-android$AndroidAPILevel " ;
320
314
ShortName = " x64" ;
321
- ExperimentalSDKInstallRoot = " $BinaryCache \arm64\Android.platform\Developer\SDKs\AndroidExperimental.sdk" ;
322
315
XCTestInstallRoot = " $BinaryCache \x64\Android.platform\Developer\Library\XCTest-development" ;
323
316
SwiftTestingInstallRoot = " $BinaryCache \x64\Android.platform\Developer\Library\Testing-development" ;
324
317
Cache = @ {};
@@ -1020,9 +1013,9 @@ function Get-SwiftSDK {
1020
1013
(
1021
1014
[Parameter (Position = 0 , Mandatory = $true )]
1022
1015
[Platform ] $Platform ,
1023
- [switch ] $Experimental = $false
1016
+ [string ] $Identifier = $Platform .ToString ()
1024
1017
)
1025
- return ([IO.Path ]::Combine((Get-PlatformRoot $Platform ), " Developer" , " SDKs" , " ${Platform } .sdk" ))
1018
+ return ([IO.Path ]::Combine((Get-PlatformRoot $Platform ), " Developer" , " SDKs" , " ${Identifier } .sdk" ))
1026
1019
}
1027
1020
1028
1021
function Build-CMakeProject {
@@ -2157,7 +2150,7 @@ function Build-ExperimentalRuntime {
2157
2150
Build-CMakeProject `
2158
2151
- Src $SourceCache \swift\Runtimes\Core `
2159
2152
- Bin (Get-TargetProjectBinaryCache $Arch ExperimentalRuntime) `
2160
- - InstallTo " $ ( $Arch .ExperimentalSDKInstallRoot ) \usr" `
2153
+ - InstallTo " $ ( Get-SwiftSDK $Platform - Identifier " ${Platform} Experimental " ) \usr" `
2161
2154
- Arch $Arch `
2162
2155
- Platform $Platform `
2163
2156
- UseBuiltCompilers C, CXX, Swift `
@@ -2269,7 +2262,7 @@ function Build-Foundation {
2269
2262
Build-CMakeProject `
2270
2263
- Src $SourceCache \swift- corelibs- foundation `
2271
2264
- Bin $FoundationBinaryCache `
2272
- - InstallTo $ (if ($Static ) { " $ ( $Arch .ExperimentalSDKInstallRoot ) \usr" } else { " $ ( Get-SwiftSDK $Platform ) \usr" }) `
2265
+ - InstallTo $ (if ($Static ) { " $ ( Get-SwiftSDK $Platform - Identifier " ${Platform} Experimental " ) \usr" } else { " $ ( Get-SwiftSDK $Platform ) \usr" }) `
2273
2266
- Arch $Arch `
2274
2267
- Platform $Platform `
2275
2268
- UseBuiltCompilers ASM, C, CXX, Swift `
0 commit comments