Skip to content
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

Integration for msvc compiler clang/llvm toolsets #10835

Closed
memsharded opened this issue Mar 21, 2022 · 3 comments · Fixed by #11492
Closed

Integration for msvc compiler clang/llvm toolsets #10835

memsharded opened this issue Mar 21, 2022 · 3 comments · Fixed by #11492
Milestone

Comments

@memsharded
Copy link
Member

Recently added support for v14x_xp toolsets, but still missing the clang/llvm ones.
It seems the idea would be:

  • The compiler is clang
  • Add necessary information to settings or conf to define which VS version to be used.
  • Define mapping between clang versions and vs toolsets
  • Have toolchains to use that.

Originally posted by @memsharded in #10815 (comment)

@memsharded memsharded added this to the 1.48 milestone Mar 21, 2022
@memsharded
Copy link
Member Author

I have done a first quick research for this. I cannot find anything out there that tells which clang version are the toolsets LLVM-vs2013, LLVM-vs2013_xp, LLVM-vs2014, LLVM-vs2014_xp, LLVM-vs2017, LLVM-vs2017_xp etc.

I guess it might be possible to install them and build something to check the versions manually from compiler definitions.

@memsharded memsharded modified the milestones: 1.48, 1.49 Apr 26, 2022
@memsharded
Copy link
Member Author

I am starting to divide use cases in #10955 (comment)

@memsharded memsharded modified the milestones: 1.49, 1.50 May 30, 2022
@czoido czoido modified the milestones: 1.50, 1.51 Jun 29, 2022
@memsharded memsharded modified the milestones: 1.51, 1.52 Jul 27, 2022
@memsharded memsharded modified the milestones: 1.52, 1.53 Aug 29, 2022
@memsharded
Copy link
Member Author

This PR #11492, merged for next 1.53 contains a few changes to better support clang in Windows, mainly for the new CMakeToolchain integration, but some minor changes for others too.

Closing this issue now, but we know that there might still be some gaps, so please try to update to the new integration (this is necessary for 2.0 anyway), and report what might still be failing against this new integration. The best starting point would be the tests in https://github.com/conan-io/conan/blob/develop/conans/test/functional/toolchains/cmake/test_cmake_toolchain_win_clang.py, or using any of the predefined templates conan new hello/0.1 -m=cmake_lib|autotools_lib|msbuild_lib|meson_lib, and open a new issue. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants