File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1650,11 +1650,13 @@ function Build-Compilers() {
1650
1650
$PythonRoot = " $BinaryCache \Python$ ( $Arch.CMakeName ) -$PythonVersion \tools"
1651
1651
$PythonLibName = " python{0}{1}" -f ([System.Version ]$PythonVersion ).Major, ([System.Version ]$PythonVersion ).Minor
1652
1652
1653
- # The STL in VS 17.10 requires Clang 17 or higher, but Swift toolchains prior to version 6 include older versions
1654
- # of Clang. If bootstrapping with an older toolchain, we need to relax to relax this requirement with
1655
- # ALLOW_COMPILER_AND_STL_VERSION_MISMATCH.
1653
+ # The STL in the latest versions of VS typically require a newer version of
1654
+ # Clang than released Swift toolchains include. If bootstrapping with an
1655
+ # older toolchain, we need to relax this requirement by defining
1656
+ # _ALLOW_COMPILER_AND_STL_VERSION_MISMATCH. Developer builds are (currently)
1657
+ # up-to-date.
1656
1658
$SwiftFlags = @ ();
1657
- if ([System.Version ](Get-PinnedToolchainVersion ) -lt [ System.Version ] " 6.0 " -and [ System.Version ]( Get-PinnedToolchainVersion ) - ne [System.Version ]" 0.0.0" ) {
1659
+ if ([System.Version ](Get-PinnedToolchainVersion ) -ne [System.Version ]" 0.0.0" ) {
1658
1660
$SwiftFlags += @ (" -Xcc" , " -D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH" );
1659
1661
}
1660
1662
You can’t perform that action at this time.
0 commit comments