@@ -787,7 +787,8 @@ function Move-Directory($Src, $Dst) {
787787 if (Test-Path - Path $Destination - Type Container) {
788788 Remove-Item - Path $Destination - Recurse - Force | Out-Null
789789 }
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
791792 }
792793}
793794
@@ -3409,14 +3410,20 @@ if (-not $SkipBuild) {
34093410
34103411 foreach ($Platform in $WindowsSDKPlatforms ) {
34113412 Invoke-BuildStep Build-SDK $Platform
3412- Invoke-BuildStep Build-ExperimentalSDK $Platform
34133413
34143414 Get-ChildItem " $ ( Get-SwiftSDK Windows) \usr\lib\swift\windows" - Filter " *.lib" - File - ErrorAction Ignore | ForEach-Object {
34153415 Write-Host - BackgroundColor DarkRed - ForegroundColor White " $ ( $_.FullName ) is not nested in an architecture directory"
34163416 Move-Item $_.FullName " $ ( Get-SwiftSDK Windows) \usr\lib\swift\windows\$ ( $Platform.Architecture.LLVMName ) \" | Out-Null
34173417 }
34183418
34193419 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+ }
34203427 }
34213428
34223429 Write-PlatformInfoPlist Windows
@@ -3428,12 +3435,18 @@ if (-not $SkipBuild) {
34283435 if ($Android ) {
34293436 foreach ($Platform in $AndroidSDKPlatforms ) {
34303437 Invoke-BuildStep Build-SDK $Platform
3431- Invoke-BuildStep Build-ExperimentalSDK $Platform
34323438
34333439 Get-ChildItem " $ ( Get-SwiftSDK Android) \usr\lib\swift\android" - File | Where-Object { $_.Name -match " .a$|.so$" } | ForEach-Object {
34343440 Write-Host - BackgroundColor DarkRed - ForegroundColor White " $ ( $_.FullName ) is not nested in an architecture directory"
34353441 Move-Item $_.FullName " $ ( Get-SwiftSDK Android) \usr\lib\swift\android\$ ( $Platform.Architecture.LLVMName ) \" | Out-Null
34363442 }
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+ }
34373450 }
34383451
34393452 Write-PlatformInfoPlist Android
0 commit comments