File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2398,6 +2398,11 @@ function Build-FoundationMacros() {
2398
2398
[hashtable ]$Arch
2399
2399
)
2400
2400
2401
+ $SwiftSyntaxDir = (Get-ProjectCMakeModules $Arch Compilers)
2402
+ if (-not (Test-Path $SwiftSyntaxDir )) {
2403
+ throw " The swift-syntax from the compiler build for $Platform $Arch .ShortName isn't available"
2404
+ }
2405
+
2401
2406
Build-CMakeProject `
2402
2407
- Src $SourceCache \swift- foundation\Sources\FoundationMacros `
2403
2408
- Bin (Get-ProjectBinaryCache $Arch FoundationMacros) `
@@ -2407,7 +2412,7 @@ function Build-FoundationMacros() {
2407
2412
- UseBuiltCompilers Swift `
2408
2413
- SwiftSDK (Get-SwiftSDK $Platform ) `
2409
2414
- Defines @ {
2410
- SwiftSyntax_DIR = ( Get-ProjectCMakeModules $HostArch Compilers) ;
2415
+ SwiftSyntax_DIR = $SwiftSyntaxDir ;
2411
2416
}
2412
2417
}
2413
2418
You can’t perform that action at this time.
0 commit comments