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() {
23982398 [hashtable ]$Arch
23992399 )
24002400
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+
24012406 Build-CMakeProject `
24022407 - Src $SourceCache \swift- foundation\Sources\FoundationMacros `
24032408 - Bin (Get-ProjectBinaryCache $Arch FoundationMacros) `
@@ -2407,7 +2412,7 @@ function Build-FoundationMacros() {
24072412 - UseBuiltCompilers Swift `
24082413 - SwiftSDK (Get-SwiftSDK $Platform ) `
24092414 - Defines @ {
2410- SwiftSyntax_DIR = ( Get-ProjectCMakeModules $HostArch Compilers) ;
2415+ SwiftSyntax_DIR = $SwiftSyntaxDir ;
24112416 }
24122417}
24132418
You can’t perform that action at this time.
0 commit comments