Skip to content

Commit 42c43e6

Browse files
authored
Merge pull request #75140 from hyp/eng/windows-local-build
[windows][build.ps1] only use swift-corelibs-foundation-windows checkout
2 parents cb77608 + d6ed2e9 commit 42c43e6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

utils/build.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1669,8 +1669,15 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
16691669
}
16701670

16711671
$env:CTEST_OUTPUT_ON_FAILURE = 1
1672+
if ($env:CI) {
1673+
# Use the windows-specific checkout on CI that provides
1674+
# a checkout that does not yet use swift-foundation.
1675+
$RepoName = "swift-corelibs-foundation-windows";
1676+
} else {
1677+
$RepoName = "swift-corelibs-foundation";
1678+
}
16721679
Build-CMakeProject `
1673-
-Src $SourceCache\swift-corelibs-foundation-windows `
1680+
-Src $SourceCache\$RepoName `
16741681
-Bin $FoundationBinaryCache `
16751682
-InstallTo $InstallPath `
16761683
-Arch $Arch `

0 commit comments

Comments
 (0)