Skip to content

Commit 3dd4198

Browse files
authored
[Windows] Prepare for swift-foundation in the toolchain (#74127)
* [Windows] Prepare for swift-foundation in the toolchain * Update SwiftSyntax directory
1 parent 3dfeb5f commit 3dd4198

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/build.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,6 +1629,7 @@ function Build-Dispatch([Platform]$Platform, $Arch, [switch]$Test = $false) {
16291629

16301630
function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
16311631
$DispatchBinaryCache = Get-TargetProjectBinaryCache $Arch Dispatch
1632+
$SwiftSyntaxDir = Get-HostProjectCMakeModules Compilers
16321633
$FoundationBinaryCache = Get-TargetProjectBinaryCache $Arch Foundation
16331634
$ShortArch = $Arch.LLVMName
16341635

@@ -1695,6 +1696,10 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
16951696
};
16961697
ZLIB_INCLUDE_DIR = "$LibraryRoot\zlib-1.3.1\usr\include";
16971698
dispatch_DIR = "$DispatchBinaryCache\cmake\modules";
1699+
SwiftSyntax_DIR = "$SwiftSyntaxDir";
1700+
_SwiftFoundation_SourceDIR = "$SourceCache\swift-foundation";
1701+
_SwiftFoundationICU_SourceDIR = "$SourceCache\swift-foundation-icu";
1702+
_SwiftCollections_SourceDIR = "$SourceCache\swift-collections"
16981703
} + $TestingDefines)
16991704
}
17001705
}

0 commit comments

Comments
 (0)