-
Notifications
You must be signed in to change notification settings - Fork 988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix for vcvars for clang with msvc v144 backend #16374
Conversation
Co-authored-by: Carlos Zoido <mrgalleta@gmail.com>
Any chance this fix can get into 1.x version of conan? We at MEDITECH can't use 2.x as Crashpad is not compatible, and we are running into this issue also. |
That is unfortunate, crashpad might be one of the very few recipes from the +1500 ones in ConanCenter that hasn't been updated yet. There is a PR to update it, but it was red. Have you tried checking it, trying and contributing? This would be the best course of action, Conan 2 is already 16 months since its release, and it is now the recommended version for production. Also, since the I'll try to help pushing that crashpad PR. |
An update to Crashpad to make it compatible with Conan 2 is in conan-io/conan-center-index#24320. It is already green, so I hope it doesn't take long to be merged. Please check it and let me know if there is any issue, the best would be to create a new ticket. Thanks! |
Hi, I sincerely don't have any idea who had the idea map the The relationship you seem to construe here, simply doesn't exist. I am talking about these lines and the mentions of a made up
For the native VS2022 toolset it's The problem appears to be that because you aren't using MSBuild with Same VS instance, filtering for the older platform toolset from VS2019: On a VS2019 instance installed on the same machine: Of course the older VS2017 platform toolset is also available with VS2019: As you can see for this v14x the relationship is 1:1, e.g.:
What you seem to be after is Let's look at a sample set of the version numbers in the 2019 and 2022 range and the last path segment that you are after and which you pass to the script as
In conclusion, there is no If you want to dig deeper, I suggest you have a look into your VS installation directory:
NB: As you can glean from these paths, |
Thanks for the comments @exoosh I know there is no But this vcvars_ver = {"v140": "14.0",
"v141": "14.1",
"v142": "14.2",
"v143": "14.3",
"v144": "14.4"}.get(toolset_version) in conan/conan/tools/microsoft/visual.py Line 135 in 3c72e2a
The problem is that the previous settings definitions were already part of the public and documented interface of Conan, and they couldn't be changed because it would be very breaking, so we had to add the |
@memsharded fair enough, got it. PS: One thing you may want to do instead is to extract the relevant values by means of an MSBuild project that runs in a pre-initialized VS build environment. This way you don't have to make these assumptions but instead can rely on well-known property names (some of which I mentioned above). Here is an example of something I did in my spare time to extract the VS version values from within MSBuild: ClVersionRetrieve.proj. |
* Fix VCVars for Clang with v14.4 toolset (backport #16374) * empty commit * fix settings --------- Co-authored-by: czoido <mrgalleta@gmail.com>
Changelog: Bugfix: Fix
LLVM/Clang
enablement ofvcvars
for latestv14.4
toolset version after VS 17.10 updateDocs: conan-io/docs#3752
Close #16373