Merge pull request #75140 from hyp/eng/windows-local-build

[windows][build.ps1] only use swift-corelibs-foundation-windows checkout
This commit is contained in:
Alex Lorenz
2024-07-11 12:26:10 -07:00
committed by GitHub

View File

@@ -1669,8 +1669,15 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
} }
$env:CTEST_OUTPUT_ON_FAILURE = 1 $env:CTEST_OUTPUT_ON_FAILURE = 1
if ($env:CI) {
# Use the windows-specific checkout on CI that provides
# a checkout that does not yet use swift-foundation.
$RepoName = "swift-corelibs-foundation-windows";
} else {
$RepoName = "swift-corelibs-foundation";
}
Build-CMakeProject ` Build-CMakeProject `
-Src $SourceCache\swift-corelibs-foundation-windows ` -Src $SourceCache\$RepoName `
-Bin $FoundationBinaryCache ` -Bin $FoundationBinaryCache `
-InstallTo $InstallPath ` -InstallTo $InstallPath `
-Arch $Arch ` -Arch $Arch `