-
-
Notifications
You must be signed in to change notification settings - Fork 78
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 CMake on Windows with Clang and MinGW headers #712
Comments
From your changes the only non-trivial one is the change to |
Thanks for the tip on
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just comment here to prevent this from happening. |
This seems to be an easy fix, I think I'll be able to look into this soon. Ping. |
System info:
Version 3.2.2, Build 3211
Windows 7 64 bit
10.0.0
8.1.0 (i686-posix-dwarf-rev0, Built by MinGW-W64 project)
What happens:
I want to use EasyClangComplete for a CMake based project on Windows.
My goal is to use Clang compiler with MinGW (mingw-w64) headers.
In order to achieve that, I had to fulfill the following requirements:
-target i686-pc-windows-gnu
when compiling.-DCMAKE_CXX_COMPILER=clang++
,-DCMAKE_CXX_FLAGS="-target i686-pc-windows-gnu"
and-G "MinGW Makefiles"
when executed.-target
as a flagMy current approach - Internal modifications
I successfully got it working by making the following modifications to EasyClangComplete's source code.
Diff view
Example
compile_commands.json
Here is an example for such a generated compilation database:
Reaching out for help:
I would love to hear your opinion. How would you implement support for this?
I might be able to make a PR for this myself, but first I would like to get an idea of how big is this task 😉
The text was updated successfully, but these errors were encountered: