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 @@ -2293,7 +2293,7 @@ function Build-TestingMacros() {
2293
2293
2294
2294
$SwiftSDK = $null
2295
2295
if ($Build ) {
2296
- $SwiftSDK = $HostArch .SDKInstallRoot
2296
+ $SwiftSDK = $BuildArch .SDKInstallRoot
2297
2297
}
2298
2298
2299
2299
$Targets = if ($Build ) {
@@ -2307,6 +2307,12 @@ function Build-TestingMacros() {
2307
2307
$InstallDir = " $ ( $Arch.ToolchainInstallRoot ) \usr"
2308
2308
}
2309
2309
2310
+ $SwiftSyntaxCMakeModules = if ($Build -and $HostArch -ne $BuildArch ) {
2311
+ Get-BuildProjectCMakeModules Compilers
2312
+ } else {
2313
+ Get-HostProjectCMakeModules Compilers
2314
+ }
2315
+
2310
2316
Build-CMakeProject `
2311
2317
- Src $SourceCache \swift- testing\Sources\TestingMacros `
2312
2318
- Bin $TestingMacrosBinaryCache `
@@ -2317,7 +2323,7 @@ function Build-TestingMacros() {
2317
2323
- SwiftSDK:$SwiftSDK `
2318
2324
- BuildTargets $Targets `
2319
2325
- Defines @ {
2320
- SwiftSyntax_DIR = ( Get-HostProjectCMakeModules Compilers) ;
2326
+ SwiftSyntax_DIR = $SwiftSyntaxCMakeModules ;
2321
2327
}
2322
2328
}
2323
2329
You can’t perform that action at this time.
0 commit comments