File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1765,17 +1765,17 @@ function Build-SPMProject {
1765
1765
$RuntimeInstallRoot = [IO.Path ]::Combine((Get-InstallDir $BuildPlatform ), " Runtimes" , $ProductVersion )
1766
1766
1767
1767
$env: Path = " $RuntimeInstallRoot \usr\bin;$ ( $BuildPlatform.ToolchainInstallRoot ) \usr\bin;${env: Path} "
1768
- $env: SDKROOT = (Get-SwiftSDK Windows )
1768
+ $env: SDKROOT = (Get-SwiftSDK $Platform .OS )
1769
1769
$env: SWIFTCI_USE_LOCAL_DEPS = " 1"
1770
1770
1771
1771
$Arguments = @ (
1772
1772
" --scratch-path" , $Bin ,
1773
1773
" --package-path" , $Src ,
1774
1774
" -c" , $Configuration ,
1775
- " -Xbuild-tools-swiftc" , " -I$ ( Get-SwiftSDK Windows ) \usr\lib\swift" ,
1776
- " -Xbuild-tools-swiftc" , " -L$ ( Get-SwiftSDK Windows ) \usr\lib\swift\windows" ,
1777
- " -Xcc" , " -I$ ( Get-SwiftSDK Windows ) \usr\lib\swift" ,
1778
- " -Xlinker" , " -L$ ( Get-SwiftSDK Windows ) \usr\lib\swift\windows"
1775
+ " -Xbuild-tools-swiftc" , " -I$ ( Get-SwiftSDK $Platform .OS ) \usr\lib\swift" ,
1776
+ " -Xbuild-tools-swiftc" , " -L$ ( Get-SwiftSDK $Platform .OS ) \usr\lib\swift\windows" ,
1777
+ " -Xcc" , " -I$ ( Get-SwiftSDK $Platform .OS ) \usr\lib\swift" ,
1778
+ " -Xlinker" , " -L$ ( Get-SwiftSDK $Platform .OS ) \usr\lib\swift\windows"
1779
1779
)
1780
1780
if ($DebugInfo ) {
1781
1781
if ($Platform.OS -eq [OS ]::Windows -and $SwiftDebugFormat -eq " codeview" ) {
You can’t perform that action at this time.
0 commit comments