MSVC build version number reported #927
Replies: 3 comments
-
Actually, the Visual Studio version number currently used is 16.0, as seen in the output of the last release build https://github.com/FashionFreedom/Seamly2D/runs/774252298?check_suite_focus=true#step:5:18
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I've created a PR that changes the compiler toolset used during the build. https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Internal_version_numbering Note that the automated Qt installation doesn't install the MSVC compiler as you can when installing it through a visual interface. At least not the aqt installer we're using, which seems to be the only way to automatically install Qt from the command line. Also, note that there are only three versions of MSVC to chose from on the GitHub runner. I've ran a find command for the cl/nmake executables available on the system https://github.com/mhitza/Seamly2D/runs/790566818?check_suite_focus=true#step:3:46 The only versions available are:
|
Beta Was this translation helpful? Give feedback.
-
@slspencer
The reported version number in the About Seamly2D section reports having been built with MSVC 2014, after spending time trying different builds to ensure that's not the case I've jumped in the source code to check how the value is reported.
Seamly2D/src/libs/vmisc/projectversion.cpp
Lines 119 to 128 in a034db9
Search for Visual Studio version at the following link
https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019
The version used in the build pipeline is:
If we run through the pasted code block, and replace
_MSC_VER
with1926
and run through the code we see it will execute the first code block, and the following formula is applied:In the end it seems to be an issue with the way the year is reported based on the MSVC version number.
Beta Was this translation helpful? Give feedback.
All reactions