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

Support clang.exe/clang++.exe #823

Closed
omcnoe opened this issue Oct 4, 2019 · 4 comments
Closed

Support clang.exe/clang++.exe #823

omcnoe opened this issue Oct 4, 2019 · 4 comments
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature Feature: debug/launch Feature: kits
Milestone

Comments

@omcnoe
Copy link

omcnoe commented Oct 4, 2019

CMake Tools should detect clang.exe/clang++.exe (clang that understands GNU arguments) as a kit, CMake now supports these compilers on Windows. Currently kit detection only creates a clang-cl.exe kit (clang that understands MSVC's cl.exe arguments).

Manually editing cmake-tools-kits.json to create a clang/clang++ kit works, CMake Tools should create this kit itself during "scan for kits".

CMake Tools incorrectly tries to use gdb for debugging when using the kit, it should use the same debugger it uses for the clang-cl.exe kit. The default vscode Windows C/C++ debug config in launch.json, with "program": "${command:cmake.launchTargetPath}" makes debugging work with my clang/clang++ kit.

@bobbrow bobbrow added Feature: debug/launch Feature: kits enhancement an enhancement to the product that is either not present or an improvement to an existing feature labels Oct 4, 2019
@Zingam
Copy link
Contributor

Zingam commented Nov 12, 2019

@bobbrow I could look into this next. It seems easy enough. Do you have any specific requirements or recommendations about the implementation?

@bobbrow
Copy link
Member

bobbrow commented Nov 13, 2019

@Zingam I can't think of any special requirements for the implementation. That would be great if you had some time to look into this!

@bobbrow bobbrow added this to the 1.3.0 milestone Feb 3, 2020
@bobbrow bobbrow modified the milestones: 1.3.0, 1.4.0 Feb 12, 2020
@bobbrow bobbrow modified the milestones: 1.4.0, 1.5.0 Apr 8, 2020
@oninoshiko
Copy link

Just chiming in that I hit this and was fairly surprised by it. It would be nice to have.

@andreeis
Copy link
Contributor

andreeis commented Nov 5, 2020

This should be fixed in CMake Tools 1.5.0 which was published today.
Let us know if you encounter any issues with this release.

@andreeis andreeis closed this as completed Nov 5, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature Feature: debug/launch Feature: kits
Projects
None yet
Development

No branches or pull requests

5 participants