@@ -791,7 +791,9 @@ function Copy-File($Src, $Dst) {
791
791
Write-Output " copy /Y `" $Src `" `" $Dst `" "
792
792
} else {
793
793
New-Item - ItemType Directory - ErrorAction Ignore $DstDir | Out-Null
794
- Copy-Item - Force $Src $Dst
794
+ Copy-Item - Force `
795
+ - Path $Src `
796
+ - Destination $Dst
795
797
}
796
798
}
797
799
@@ -801,7 +803,9 @@ function Copy-Directory($Src, $Dst) {
801
803
Write-Output " copy /Y `" $Src `" `" $Dst `" "
802
804
} else {
803
805
New-Item - ItemType Directory - ErrorAction Ignore $Dst | Out-Null
804
- Copy-Item - Force - Recurse $Src $Dst
806
+ Copy-Item - Force - Recurse `
807
+ - Path $Src `
808
+ - Destination $Dst
805
809
}
806
810
}
807
811
@@ -2027,14 +2031,20 @@ function Test-Compilers([Hashtable] $Platform, [string] $Variant, [switch] $Test
2027
2031
2028
2032
# Transitive dependency of _lldb.pyd
2029
2033
$RuntimeBinaryCache = Get-ProjectBinaryCache $BuildPlatform Runtime
2030
- Copy-Item $RuntimeBinaryCache \bin\swiftCore.dll " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \lib\site-packages\lldb"
2034
+ Copy-Item `
2035
+ - Path $RuntimeBinaryCache \bin\swiftCore.dll `
2036
+ - Destination " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \lib\site-packages\lldb"
2031
2037
2032
2038
# Runtime dependencies of repl_swift.exe
2033
2039
$SwiftRTSubdir = " lib\swift\windows"
2034
2040
Write-Host " Copying '$RuntimeBinaryCache \$SwiftRTSubdir \$ ( $Platform.Architecture.LLVMName ) \swiftrt.obj' to '$ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \$SwiftRTSubdir '"
2035
- Copy-Item " $RuntimeBinaryCache \$SwiftRTSubdir \$ ( $Platform.Architecture.LLVMName ) \swiftrt.obj" " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \$SwiftRTSubdir "
2041
+ Copy-Item `
2042
+ - Path " $RuntimeBinaryCache \$SwiftRTSubdir \$ ( $Platform.Architecture.LLVMName ) \swiftrt.obj" `
2043
+ - Destination " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \$SwiftRTSubdir "
2036
2044
Write-Host " Copying '$RuntimeBinaryCache \bin\swiftCore.dll' to '$ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \bin'"
2037
- Copy-Item " $RuntimeBinaryCache \bin\swiftCore.dll" " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \bin"
2045
+ Copy-Item `
2046
+ - Path " $RuntimeBinaryCache \bin\swiftCore.dll" `
2047
+ - Destination " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \bin"
2038
2048
2039
2049
$TestingDefines += @ {
2040
2050
LLDB_INCLUDE_TESTS = " YES" ;
@@ -2110,7 +2120,9 @@ function Build-mimalloc() {
2110
2120
$BuildSuffix = if ($BuildPlatform -eq $KnownPlatforms [" WindowsX64" ]) { " " } else { " -arm64" }
2111
2121
2112
2122
foreach ($item in " mimalloc.dll" , " mimalloc-redirect$HostSuffix .dll" ) {
2113
- Copy-Item - Path " $BinaryCache \$ ( $Platform.Triple ) \mimalloc\bin\$item " - Destination " $ ( $Platform.ToolchainInstallRoot ) \usr\bin\"
2123
+ Copy-Item `
2124
+ - Path " $BinaryCache \$ ( $Platform.Triple ) \mimalloc\bin\$item " `
2125
+ - Destination " $ ( $Platform.ToolchainInstallRoot ) \usr\bin\"
2114
2126
}
2115
2127
2116
2128
# TODO: should we split this out into its own function?
@@ -3484,16 +3496,20 @@ function Install-HostToolchain() {
3484
3496
3485
3497
# Restructure _InternalSwiftScan (keep the original one for the installer)
3486
3498
Copy-Item - Force `
3487
- " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\lib\swift\_InternalSwiftScan" `
3488
- " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\include"
3499
+ - Path " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\lib\swift\_InternalSwiftScan" `
3500
+ - Destination " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\include"
3489
3501
Copy-Item - Force `
3490
- " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\lib\swift\windows\_InternalSwiftScan.lib" `
3491
- " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\lib"
3502
+ - Path " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\lib\swift\windows\_InternalSwiftScan.lib" `
3503
+ - Destination " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\lib"
3492
3504
3493
3505
# Switch to swift-driver
3494
3506
$SwiftDriver = ([IO.Path ]::Combine((Get-ProjectBinaryCache $HostPlatform Driver), " bin" , " swift-driver.exe" ))
3495
- Copy-Item - Force $SwiftDriver " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\bin\swift.exe"
3496
- Copy-Item - Force $SwiftDriver " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\bin\swiftc.exe"
3507
+ Copy-Item - Force `
3508
+ - Path $SwiftDriver `
3509
+ - Destination " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\bin\swift.exe"
3510
+ Copy-Item - Force `
3511
+ - Path $SwiftDriver `
3512
+ - Destination " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\bin\swiftc.exe"
3497
3513
}
3498
3514
3499
3515
function Build-Inspect ([Hashtable ] $Platform ) {
0 commit comments