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 @@ -2293,7 +2293,7 @@ function Build-TestingMacros() {
22932293
22942294 $SwiftSDK = $null
22952295 if ($Build ) {
2296- $SwiftSDK = $HostArch .SDKInstallRoot
2296+ $SwiftSDK = $BuildArch .SDKInstallRoot
22972297 }
22982298
22992299 $Targets = if ($Build ) {
@@ -2307,6 +2307,12 @@ function Build-TestingMacros() {
23072307 $InstallDir = " $ ( $Arch.ToolchainInstallRoot ) \usr"
23082308 }
23092309
2310+ $SwiftSyntaxCMakeModules = if ($Build -and $HostArch -ne $BuildArch ) {
2311+ Get-BuildProjectCMakeModules Compilers
2312+ } else {
2313+ Get-HostProjectCMakeModules Compilers
2314+ }
2315+
23102316 Build-CMakeProject `
23112317 - Src $SourceCache \swift- testing\Sources\TestingMacros `
23122318 - Bin $TestingMacrosBinaryCache `
@@ -2317,7 +2323,7 @@ function Build-TestingMacros() {
23172323 - SwiftSDK:$SwiftSDK `
23182324 - BuildTargets $Targets `
23192325 - Defines @ {
2320- SwiftSyntax_DIR = ( Get-HostProjectCMakeModules Compilers) ;
2326+ SwiftSyntax_DIR = $SwiftSyntaxCMakeModules ;
23212327 }
23222328}
23232329
You can’t perform that action at this time.
0 commit comments