2
votes

I'm trying to use clang on QtCreator Windows. Had already build llvm and clang following Building Clang natively on Windows/MinGW and also had configured a kit on Qt Creator to use clang. But in the compilation log I still see g++ being called. So I modified the .pro adding:

QMAKE_CXX += C:/llvm/bin/clang++.exe

Now, checking the Makefiles I see:

CXX           = g++ C:/llvm/bin/clang++.exe

How to get rid of this g++?

1
+= means concatenate, whereas = means replace - Jim
did you use clang build from Visual C++ distribution? which works with MS codegen at backend - amigo421

1 Answers

1
votes

Assign with = instead of +=:

QMAKE_CXX = C:/llvm/bin/clang++.exe