[Interest] clang in Visual Studio Codegen supported?

Thiago Macieira thiago.macieira at intel.com
Thu Feb 2 08:37:09 CET 2017


On quinta-feira, 2 de fevereiro de 2017 15:02:41 PST Hamish Moffatt wrote:
> Is Microsoft's clang add-on for Visual Studio 2015 (CodeGen) supported
> for compiling Qt applications? (With Qt 5.8?)

clang-cl is still buggy and not working properly. Some people reported some 
level of success after fixing Qt headers, but I didn't have any. Make sure 
you're using 3.9 or 4.0, at least, if you do.

I have absolutely no clue about using clang-cl inside Visual Studio. qmake 
support for generating project files is completely absent.

> I tried (qmake -tp vc, change settings to CodeGen etc) but didn't get
> far; the very first source file failed to compile with:
> 
> 
> 1>  In file included from
> ..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qbasicatomic.h:57:
> 1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qatomic_msvc.h(130,10):
> warning : unknown pragma ignored [-Wunknown-pragmas]
> 1>  # pragma intrinsic (_InterlockedIncrement)

Report to LLVM community and have them fix compatibility issues.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list