[Qt-creator] how can i use clang-cl with qt creator under Windows?
Eike Ziller
Eike.Ziller at qt.io
Thu Mar 8 07:22:46 CET 2018
> On Mar 7, 2018, at 20:17, Dennis Luehring <dl.soluz at gmx.net> wrote:
>
> my current setup is
>
> QtCreator 4.4.1 (or 4.5 if needed), Qbs, Qt 5.6x and Visual Studio 2015 as my C/C++ x64 Compiler
>
> my project can be compiled, linked, debugged - everything is working
>
> an after reading the news about google using clang-cl for building Chrome for the windows platform
>
> http://blog.llvm.org/2018/03/clang-is-now-used-to-build-chrome-for.html
>
> and want to give it a try - but how?
>
> i've installed the x86 and x64 build of clang-cl from http://llvm.org/builds/
>
> and QtCreator finds the x64 clang-cl unter Options/Tools/...
>
> Clang based on MSVC 2015 C++ - but nothing for the C compiler
>
> when i change the C++ compiler in my current used kit to the found clang
>
> it will fail finding cl.exe (its called clang-cl.exe) in the llvm folder when i start to compiler
>
> any ideas?
Check if the qmake step in your build configuration includes “-spec win32-clang-msvc”. If not, then set “win32-clang-msvc” in the “Qt mkspec” setting for your kit and try again. I suppose Qt Creator might not do that automatically in your case.
Br, Eike
--
Eike Ziller
Principal Software Engineer
The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
eike.ziller at qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
More information about the Qt-creator
mailing list