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