bfgroup / b2

B2 makes it easy to build C++ projects, everywhere.
https://www.bfgroup.xyz/b2/
Boost Software License 1.0
75 stars 228 forks source link

msvc: recognize Visual Studio 2022 v17.10.0, which uses toolchain version 14.40.33807 #394

Closed dimitry-unified-streaming closed 3 months ago

dimitry-unified-streaming commented 3 months ago

Proposed changes

Fixes #391. Visual Studio 2022 v17.10.0 introduced a new toolchain version 14.40.33807, which does not start with "14.3". This trips up the cl.exe finding logic in msvc.jam.

As discussed in #391, it is really a bad move of Microsoft to bump their toolchain version that way, but since you cannot have Visual Studio 2022 v17.9.x and v17.10.x installed side-by-side, I think it does not make much sense to introduce a msvc-14.4 toolset in b2.

Therefore, I would propose to recognize toolchain versions starting with "14.4" also as msvc-14.3, which is a relatively small change.

Types of changes

What types of changes does your code introduce?

Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.