stefanseefeld / faber

Faber
https://stefanseefeld.github.io/faber
Boost Software License 1.0
14 stars 2 forks source link

Versioning of msvc inconsistent #5

Open terrorfisch opened 6 years ago

terrorfisch commented 6 years ago

The version of Visual Studio 2017 is 15.x but the version of the toolset is 14.1x https://blogs.msdn.microsoft.com/vcblog/2017/11/15/side-by-side-minor-version-msvc-toolsets-in-visual-studio-2017/

The vswhere code uses the toolset version as VS version https://github.com/stefanseefeld/faber/blob/f1398e5f8d6d447e722dd883334851f6b7ef0fae/src/faber/tools/msvc.py#L198

I am currently working on implementing autodetection of vswhere and stumbled upon this inconsistency. I have VS 2015 and VS 2017 installed and this bug results in overwriting the VS 2017 entry with the VS 2015 entry from the registry.

I guess the correct version would be 14.1 to comply with the boost naming of libraries?

stefanseefeld commented 6 years ago

Yeah, I'm a bit stuck in the versioning inconsistency. I'm not sure what the "correct" version is. What version would the original faber code report for VS 2015 and VS 2017 respectively ? And what does it report with your patch ?

stefanseefeld commented 5 years ago

Hi @terrorfisch , are you still interested in addressing this issue ? I'm not a regular MSVC user, so can offer only little help. Nevertheless, I'd be interested in fixing any such issue. Thanks !