>> QMAKE_CXXFLAGS = $$QMAKE_CFLAGS Wrong line, sorry. I meant the following lines in qmake.conf of win32-clang-msvc: QMAKE_CC = clang-cl QMAKE_CXX = $$QMAKE_CC
2018-03-08 8:39 GMT+01:00 Markus Maier <markus.maier...@gmail.com>: > Hi, > > I can compile a project which also contains C files when setting "no > compiler" for the C compiler and selecting "LLVM ..." for C++. > The point here is that the win32-clang-msvc mkspec contains the following > line: > QMAKE_CXXFLAGS = $$QMAKE_CFLAGS > ... which as far as I understand means that the C++ compiler is also used > for C files. > > However there is the following bug in Qt Creator (which also describes how > to set up clang-cl quite well): > https://bugreports.qt.io/browse/QTCREATORBUG-19255 > ... which means that you'll have to re-configure the C++ compiler with > every restart of Qt Creator. > > Best regards > Markus Maier > > > 2018-03-08 8:01 GMT+01:00 Dennis Luehring <dl.so...@gmx.net>: > >> 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? >> >> >>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? >> >> >> >> >> >> _______________________________________________ >> Qt-creator mailing list >> Qt-creator@qt-project.org >> http://lists.qt-project.org/mailman/listinfo/qt-creator >> > >
_______________________________________________ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator