@@ -787,7 +787,8 @@ function Move-Directory($Src, $Dst) {
787
787
if (Test-Path - Path $Destination - Type Container) {
788
788
Remove-Item - Path $Destination - Recurse - Force | Out-Null
789
789
}
790
- Move-Item - Path $Src - Destination $Dst - Force | Out-Null
790
+ New-Item - ItemType Directory - ErrorAction Ignore $Dst | Out-Null
791
+ Move-Item - Path $Src - Destination $Destination - Force | Out-Null
791
792
}
792
793
}
793
794
@@ -3409,14 +3410,20 @@ if (-not $SkipBuild) {
3409
3410
3410
3411
foreach ($Platform in $WindowsSDKPlatforms ) {
3411
3412
Invoke-BuildStep Build-SDK $Platform
3412
- Invoke-BuildStep Build-ExperimentalSDK $Platform
3413
3413
3414
3414
Get-ChildItem " $ ( Get-SwiftSDK Windows) \usr\lib\swift\windows" - Filter " *.lib" - File - ErrorAction Ignore | ForEach-Object {
3415
3415
Write-Host - BackgroundColor DarkRed - ForegroundColor White " $ ( $_.FullName ) is not nested in an architecture directory"
3416
3416
Move-Item $_.FullName " $ ( Get-SwiftSDK Windows) \usr\lib\swift\windows\$ ( $Platform.Architecture.LLVMName ) \" | Out-Null
3417
3417
}
3418
3418
3419
3419
Copy-Directory " $ ( Get-SwiftSDK Windows) \usr\bin" " $ ( [IO.Path ]::Combine((Get-InstallDir $Platform ), " Runtimes" , $ProductVersion , " usr" )) "
3420
+
3421
+ Invoke-BuildStep Build-ExperimentalSDK $Platform
3422
+
3423
+ Get-ChildItem " $ ( Get-SwiftSDK Windows - Identifier WindowsExperimental) \usr\lib\swift_static\windows" - Filter " *.lib" - File - ErrorAction Ignore | ForEach-Object {
3424
+ Write-Host - BackgroundColor DarkRed - ForegroundColor White " $ ( $_.FullName ) is not nested in an architecture directory"
3425
+ Move-Item $_.FullName " $ ( Get-SwiftSDK Windows - Identifier WindowsExperimental) \usr\lib\swift_static\windows\$ ( $Platform.Architecture.LLVMName ) \" | Out-Null
3426
+ }
3420
3427
}
3421
3428
3422
3429
Write-PlatformInfoPlist Windows
@@ -3428,12 +3435,18 @@ if (-not $SkipBuild) {
3428
3435
if ($Android ) {
3429
3436
foreach ($Platform in $AndroidSDKPlatforms ) {
3430
3437
Invoke-BuildStep Build-SDK $Platform
3431
- Invoke-BuildStep Build-ExperimentalSDK $Platform
3432
3438
3433
3439
Get-ChildItem " $ ( Get-SwiftSDK Android) \usr\lib\swift\android" - File | Where-Object { $_.Name -match " .a$|.so$" } | ForEach-Object {
3434
3440
Write-Host - BackgroundColor DarkRed - ForegroundColor White " $ ( $_.FullName ) is not nested in an architecture directory"
3435
3441
Move-Item $_.FullName " $ ( Get-SwiftSDK Android) \usr\lib\swift\android\$ ( $Platform.Architecture.LLVMName ) \" | Out-Null
3436
3442
}
3443
+
3444
+ Invoke-BuildStep Build-ExperimentalSDK $Platform
3445
+
3446
+ Get-ChildItem " $ ( Get-SwiftSDK Android - Identifier AndroidExperimental) \usr\lib\swift_static\android" - File | Where-Object { $_.Name -match " .a$|.so$" } | ForEach-Object {
3447
+ Write-Host - BackgroundColor DarkRed - ForegroundColor White " $ ( $_.FullName ) is not nested in an architecture directory"
3448
+ Move-Item $_.FullName " $ ( Get-SwiftSDK Android - Identifier AndroidExperimental) \usr\lib\swift_static\android\$ ( $Platform.Architecture.LLVMName ) \" | Out-Null
3449
+ }
3437
3450
}
3438
3451
3439
3452
Write-PlatformInfoPlist Android
0 commit comments