Skip to content

Commit d6ed2e9

Browse files
committed
[windows][build.ps1] only use swift-corelibs-foundation-windows checkout
in CI #75073 has broken a local toolchain build on windows using build.ps1, as the local build does not use update_checkout on windows, and thus does not checkout swift-corelibs-foundation-windows.
1 parent dfc5321 commit d6ed2e9

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
@@ -1668,8 +1668,15 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
16681668
}
16691669

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

0 commit comments

Comments
 (0)