Skip to content

Commit 069302e

Browse files
committed
utils: do not allow the compiler mismatch for the STL
When using a development toolchain or the 6.0 toolchain, do not allow the mismatch of the compiler as we have a new enough compiler.
1 parent 6d78955 commit 069302e

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)