@@ -794,7 +794,9 @@ function Copy-File($Src, $Dst) {
794
794
Write-Output " copy /Y `" $Src `" `" $Dst `" "
795
795
} else {
796
796
New-Item - ItemType Directory - ErrorAction Ignore $DstDir | Out-Null
797
- Copy-Item - Force $Src $Dst
797
+ Copy-Item - Force `
798
+ - Path $Src `
799
+ - Destination $Dst
798
800
}
799
801
}
800
802
@@ -804,7 +806,9 @@ function Copy-Directory($Src, $Dst) {
804
806
Write-Output " copy /Y `" $Src `" `" $Dst `" "
805
807
} else {
806
808
New-Item - ItemType Directory - ErrorAction Ignore $Dst | Out-Null
807
- Copy-Item - Force - Recurse $Src $Dst
809
+ Copy-Item - Force - Recurse `
810
+ - Path $Src `
811
+ - Destination $Dst
808
812
}
809
813
}
810
814
@@ -2032,14 +2036,20 @@ function Test-Compilers([Hashtable] $Platform, [string] $Variant, [switch] $Test
2032
2036
2033
2037
# Transitive dependency of _lldb.pyd
2034
2038
$RuntimeBinaryCache = Get-ProjectBinaryCache $BuildPlatform Runtime
2035
- Copy-Item $RuntimeBinaryCache \bin\swiftCore.dll " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \lib\site-packages\lldb"
2039
+ Copy-Item `
2040
+ - Path $RuntimeBinaryCache \bin\swiftCore.dll `
2041
+ - Destination " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \lib\site-packages\lldb"
2036
2042
2037
2043
# Runtime dependencies of repl_swift.exe
2038
2044
$SwiftRTSubdir = " lib\swift\windows"
2039
2045
Write-Host " Copying '$RuntimeBinaryCache \$SwiftRTSubdir \$ ( $Platform.Architecture.LLVMName ) \swiftrt.obj' to '$ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \$SwiftRTSubdir '"
2040
- Copy-Item " $RuntimeBinaryCache \$SwiftRTSubdir \$ ( $Platform.Architecture.LLVMName ) \swiftrt.obj" " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \$SwiftRTSubdir "
2046
+ Copy-Item `
2047
+ - Path " $RuntimeBinaryCache \$SwiftRTSubdir \$ ( $Platform.Architecture.LLVMName ) \swiftrt.obj" `
2048
+ - Destination " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \$SwiftRTSubdir "
2041
2049
Write-Host " Copying '$RuntimeBinaryCache \bin\swiftCore.dll' to '$ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \bin'"
2042
- Copy-Item " $RuntimeBinaryCache \bin\swiftCore.dll" " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \bin"
2050
+ Copy-Item `
2051
+ - Path " $RuntimeBinaryCache \bin\swiftCore.dll" `
2052
+ - Destination " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \bin"
2043
2053
2044
2054
$TestingDefines += @ {
2045
2055
LLDB_INCLUDE_TESTS = " YES" ;
@@ -2115,7 +2125,9 @@ function Build-mimalloc() {
2115
2125
$BuildSuffix = if ($BuildPlatform -eq $KnownPlatforms [" WindowsX64" ]) { " " } else { " -arm64" }
2116
2126
2117
2127
foreach ($item in " mimalloc.dll" , " mimalloc-redirect$HostSuffix .dll" ) {
2118
- Copy-Item - Path " $BinaryCache \$ ( $Platform.Triple ) \mimalloc\bin\$item " - Destination " $ ( $Platform.ToolchainInstallRoot ) \usr\bin\"
2128
+ Copy-Item `
2129
+ - Path " $BinaryCache \$ ( $Platform.Triple ) \mimalloc\bin\$item " `
2130
+ - Destination " $ ( $Platform.ToolchainInstallRoot ) \usr\bin\"
2119
2131
}
2120
2132
2121
2133
# TODO: should we split this out into its own function?
@@ -3449,16 +3461,20 @@ function Install-HostToolchain() {
3449
3461
3450
3462
# Restructure _InternalSwiftScan (keep the original one for the installer)
3451
3463
Copy-Item - Force `
3452
- " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\lib\swift\_InternalSwiftScan" `
3453
- " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\include"
3464
+ - Path " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\lib\swift\_InternalSwiftScan" `
3465
+ - Destination " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\include"
3454
3466
Copy-Item - Force `
3455
- " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\lib\swift\windows\_InternalSwiftScan.lib" `
3456
- " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\lib"
3467
+ - Path " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\lib\swift\windows\_InternalSwiftScan.lib" `
3468
+ - Destination " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\lib"
3457
3469
3458
3470
# Switch to swift-driver
3459
3471
$SwiftDriver = ([IO.Path ]::Combine((Get-ProjectBinaryCache $HostPlatform Driver), " bin" , " swift-driver.exe" ))
3460
- Copy-Item - Force $SwiftDriver " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\bin\swift.exe"
3461
- Copy-Item - Force $SwiftDriver " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\bin\swiftc.exe"
3472
+ Copy-Item - Force `
3473
+ - Path $SwiftDriver `
3474
+ - Destination " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\bin\swift.exe"
3475
+ Copy-Item - Force `
3476
+ - Path $SwiftDriver `
3477
+ - Destination " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\bin\swiftc.exe"
3462
3478
}
3463
3479
3464
3480
function Build-Inspect ([Hashtable ] $Platform ) {
0 commit comments