File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1481,7 +1481,7 @@ function Build-FoundationMacros() {
1481
1481
1482
1482
$SwiftSDK = $null
1483
1483
if ($Build ) {
1484
- $SwiftSDK = $HostArch .SDKInstallRoot
1484
+ $SwiftSDK = $BuildArch .SDKInstallRoot
1485
1485
}
1486
1486
1487
1487
$Targets = if ($Build ) {
@@ -1495,6 +1495,12 @@ function Build-FoundationMacros() {
1495
1495
$InstallDir = " $ ( $Arch.ToolchainInstallRoot ) \usr"
1496
1496
}
1497
1497
1498
+ $SwiftSyntaxCMakeModules = if ($Build -and $HostArch -ne $BuildArch ) {
1499
+ Get-BuildProjectCMakeModules Compilers
1500
+ } else {
1501
+ Get-HostProjectCMakeModules Compilers
1502
+ }
1503
+
1498
1504
Build-CMakeProject `
1499
1505
- Src $SourceCache \swift- foundation\Sources\FoundationMacros `
1500
1506
- Bin $FoundationMacrosBinaryCache `
@@ -1505,7 +1511,7 @@ function Build-FoundationMacros() {
1505
1511
- SwiftSDK:$SwiftSDK `
1506
1512
- BuildTargets $Targets `
1507
1513
- Defines @ {
1508
- SwiftSyntax_DIR = ( Get-HostProjectCMakeModules Compilers) ;
1514
+ SwiftSyntax_DIR = $SwiftSyntaxCMakeModules ;
1509
1515
}
1510
1516
}
1511
1517
You can’t perform that action at this time.
0 commit comments