File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -3785,6 +3785,37 @@ function Install-HostToolchain() {
3785
3785
Copy-Item - Force `
3786
3786
- Path $SwiftDriver `
3787
3787
- Destination " $ ( $HostPlatform.ToolchainInstallRoot ) \usr\bin\swiftc.exe"
3788
+
3789
+ # Copy static dependencies
3790
+ if ($Windows ) {
3791
+ foreach ($Build in $WindowsSDKBuilds ) {
3792
+ $SDKROOT = Get-SwiftSDK $Build.OS - Identifier " $ ( $Build.OS ) Experimental"
3793
+ Copy-Item - Force `
3794
+ - Path " ${BinaryCache} \$ ( $Build.Triple ) \curl\lib\libcurl.lib" `
3795
+ - Destination " ${SDKROOT} \usr\lib\swift_static\$ ( $Build.OS.ToString ().ToLowerInvariant()) \$ ( $Build.Architecture.LLVMName ) \libcurl.lib" | Out-Null
3796
+ Copy-Item - Force `
3797
+ - Path " ${BinaryCache} \$ ( $Build.Triple ) \libxml2-2.11.5\libxml2s.lib" `
3798
+ - Destination " ${SDKROOT} \usr\lib\swift_static\$ ( $Build.OS.ToString ().ToLowerInvariant()) \$ ( $Build.Architecture.LLVMName ) \libxml2s.lib" | Out-Null
3799
+ Copy-Item - Force `
3800
+ - Path " ${BinaryCache} \$ ( $Build.Triple ) \zlib\zlibstatic.lib" `
3801
+ - Destination " ${SDKROOT} \usr\lib\swift_static\$ ( $Build.OS.ToString ().ToLowerInvariant()) \$ ( $Build.Architecture.LLVMName ) \zlibstatic.lib" | Out-Null
3802
+ }
3803
+ }
3804
+
3805
+ if ($Android ) {
3806
+ foreach ($Build in $AndroidSDKBuilds ) {
3807
+ $SDKROOT = Get-SwiftSDK $Build.OS - Identifier " $ ( $Build.OS ) Experimental"
3808
+ Copy-Item - Force `
3809
+ - Path " ${BinaryCache} \$ ( $Build.Triple ) \curl\lib\libcurl.a" `
3810
+ - Destination " ${SDKROOT} \usr\lib\swift_static\$ ( $Build.OS.ToString ().ToLowerInvariant()) \$ ( $Build.Architecture.LLVMName ) \libcurl.a" | Out-Null
3811
+ Copy-Item - Force `
3812
+ - Path " ${BinaryCache} \$ ( $Build.Triple ) \libxml2-2.11.5\libxml2.a" `
3813
+ - Destination " ${SDKROOT} \usr\lib\swift_static\$ ( $Build.OS.ToString ().ToLowerInvariant()) \$ ( $Build.Architecture.LLVMName ) \libxml2.a" | Out-Null
3814
+ Copy-Item - Force `
3815
+ - Path " ${BinaryCache} \$ ( $Build.Triple ) \zlib\libz.a" `
3816
+ - Destination " ${SDKROOT} \usr\lib\swift_static\$ ( $Build.OS.ToString ().ToLowerInvariant()) \$ ( $Build.Architecture.LLVMName ) \libz.a" | Out-Null
3817
+ }
3818
+ }
3788
3819
}
3789
3820
3790
3821
function Build-Inspect ([Hashtable ] $Platform ) {
You can’t perform that action at this time.
0 commit comments