Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.0.0-beta1
-
None
-
Windows 10, Clang 3.7.1
-
eb4d1584b6cd9d06a99dd74337917cac0aacece1
Description
Clang officially ships windows builds at http://llvm.org/releases/download.html
They even have nightly builds http://llvm.org/builds/
Clang on Windows works by using Visual C++ 2013/2015 headers and CRT.
Qt Creator could check for the presence of `HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LLVM\LLVM`.
and then high jack existing Visual C++ kits by changing the following
environment variables:
$ set PATH=C:\Program Files (x86)\LLVM\msbuild-bin\;%PATH% $ set INCLUDE=C:\Program Files (x86)\LLVM\lib\clang\3.7.0\include\;%INCLUDE%
Then everything should work as would normally do for Visual C++.
Currently the LLVM 64 bit installer suffers from the following bug:
https://llvm.org/bugs/show_bug.cgi?id=26212
Clang on Windows is too important not to support.
With minimum effort Qt Creator 3.7.0 could have some nice PR! – Clang supported on Windows!
Attachments
Issue Links
- relates to
-
QTBUG-50804 Windows: Clang support
- Reported
For Gerrit Dashboard: QTCREATORBUG-15641 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
147990,13 | Add experimental clang-cl based toolchain. | master | qt-creator/qt-creator | Status: MERGED | -2 | 0 |
148223,3 | msvc2tasks.pl: Add support for clang-cl.exe and match errors, too. | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
148384,2 | MsvcParser: Factor out shared functionality. | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
149351,3 | Experimental clang-cl based toolchain: Support MSVC 2013 as well. | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |