Skip to content

Commit 018ef6e

Browse files
authored
Merge pull request #76712 from compnerd/mismatch
utils: do not allow the compiler mismatch for the STL
2 parents c126bab + 069302e commit 018ef6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ function Build-Compilers() {
14211421
# of Clang. If bootstrapping with an older toolchain, we need to relax to relax this requirement with
14221422
# ALLOW_COMPILER_AND_STL_VERSION_MISMATCH.
14231423
$SwiftFlags = @();
1424-
if ([System.Version](Get-PinnedToolchainVersion) -lt [System.Version]"6.0") {
1424+
if ([System.Version](Get-PinnedToolchainVersion) -lt [System.Version]"6.0" -and [System.Version](Get-PinnedToolchainVersion) -ne [System.Version]"0.0.0") {
14251425
$SwiftFlags += @("-Xcc", "-D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH");
14261426
}
14271427

0 commit comments

Comments
 (0)