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