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