File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1757,7 +1757,7 @@ function Build-FoundationMacros() {
1757
1757
1758
1758
$SwiftSDK = $null
1759
1759
if ($Build ) {
1760
- $SwiftSDK = $HostArch .SDKInstallRoot
1760
+ $SwiftSDK = $BuildArch .SDKInstallRoot
1761
1761
}
1762
1762
1763
1763
$Targets = if ($Build ) {
@@ -1771,6 +1771,12 @@ function Build-FoundationMacros() {
1771
1771
$InstallDir = " $ ( $Arch.ToolchainInstallRoot ) \usr"
1772
1772
}
1773
1773
1774
+ $SwiftSyntaxCMakeModules = if ($Build -and $HostArch -ne $BuildArch ) {
1775
+ Get-BuildProjectCMakeModules Compilers
1776
+ } else {
1777
+ Get-HostProjectCMakeModules Compilers
1778
+ }
1779
+
1774
1780
Build-CMakeProject `
1775
1781
- Src $SourceCache \swift- foundation\Sources\FoundationMacros `
1776
1782
- Bin $FoundationMacrosBinaryCache `
@@ -1781,7 +1787,7 @@ function Build-FoundationMacros() {
1781
1787
- SwiftSDK:$SwiftSDK `
1782
1788
- BuildTargets $Targets `
1783
1789
- Defines @ {
1784
- SwiftSyntax_DIR = ( Get-HostProjectCMakeModules Compilers) ;
1790
+ SwiftSyntax_DIR = $SwiftSyntaxCMakeModules ;
1785
1791
}
1786
1792
}
1787
1793
You can’t perform that action at this time.
0 commit comments