[Qt-creator] how can i use clang-cl with qt creator under Windows?

Eike Ziller Eike.Ziller at qt.io
Thu Mar 8 08:50:18 CET 2018


> On Mar 8, 2018, at 08:01, Dennis Luehring <dl.soluz at gmx.net> wrote:
> 
> Am 08.03.2018 um 07:22 schrieb Eike Ziller:
> 
> >>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.
> 
> is that "Qt mkspec" also working with Qbs?

Sorry, didn’t see that you use Qbs. No, qbs doesn’t use mkspecs. I do not know how Qbs knows what compiler exactly to call or how Qt Creator tells it which one it is.

> >>Qt 5.6 doesn’t have a mkspec for clang-cl, so you need to either create
> >>one yourself, copy one from somewhere else (they are usually not
> >>self-contained though), or use a Qt version which has one.
> 
> so i think it would be better using Qt5.8 for the first tests and try to get back to 5.6 later
> 
> what about the C compiler detection problems?
> 
> (as i wrote) i've installed the current svn version of clang-cl from the LLVM homepage
> and my QtCreator 4.4.1 detected this C++ compiler:
> 
> LLVM 64bit based on MSVC2015 | Clang
> Initalization: ...\vcvarsall.bat amd64
> LLVM: C:\Program Files\LLVM
> 
> but no C compiler
> 
> should i upgrade to QtCreator 4.5 or later, or is the missing C compiler
> handler by the “win32-clang-msvc” spec?

-- 
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