Skip to content

Commit cf475c2

Browse files
authored
[6.0] [Windows] Prepare for swift-foundation in the toolchain
* [Windows] Prepare for swift-foundation in the toolchain * Update SwiftSyntax directory
1 parent 0220b02 commit cf475c2

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
@@ -1408,6 +1408,7 @@ function Build-Dispatch([Platform]$Platform, $Arch, [switch]$Test = $false) {
14081408

14091409
function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
14101410
$DispatchBinaryCache = Get-TargetProjectBinaryCache $Arch Dispatch
1411+
$SwiftSyntaxDir = Get-HostProjectCMakeModules Compilers
14111412
$FoundationBinaryCache = Get-TargetProjectBinaryCache $Arch Foundation
14121413
$ShortArch = $Arch.LLVMName
14131414

@@ -1450,6 +1451,10 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
14501451
ZLIB_LIBRARY = "$LibraryRoot\zlib-1.3\usr\lib\$Platform\$ShortArch\zlibstatic.lib";
14511452
ZLIB_INCLUDE_DIR = "$LibraryRoot\zlib-1.3\usr\include";
14521453
dispatch_DIR = "$DispatchBinaryCache\cmake\modules";
1454+
SwiftSyntax_DIR = "$SwiftSyntaxDir";
1455+
_SwiftFoundation_SourceDIR = "$SourceCache\swift-foundation";
1456+
_SwiftFoundationICU_SourceDIR = "$SourceCache\swift-foundation-icu";
1457+
_SwiftCollections_SourceDIR = "$SourceCache\swift-collections"
14531458
} + $TestingDefines)
14541459
}
14551460
}

0 commit comments

Comments
 (0)