Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up ccache with Qt Creator on Windows

I'm trying to set up ccache in Qt Creator on Windows.

Unfortunatelly I couldn't find any good instruction. How to make it working?

I have ccache installed with Cygwin.

edit:

I've tried adding

QMAKE_CXX+="ccache g++"

as additional parameter in qmake build step.

But in compile output I still have "g++ -c -g -Wall ..." and I suppose it should be "ccache g++ ..."

like image 855
krzych Avatar asked Jul 09 '12 20:07

krzych


People also ask

What compiler does Qt Creator use?

Qt Creator uses the C++ compiler from the GNU Compiler Collection on Linux. On Windows it can use MinGW or MSVC with the default install and can also use Microsoft Console Debugger when compiled from source code. Clang is also supported.

Does QT need Creator?

You certainly don't have to use QtCreator to write a Qt program. You also don't have to use qmake but you are asking for trouble by not using it. To do anything even remotely interesting in Qt you will inevitably end up subclassing QObject .


1 Answers

It should be:

"QMAKE_CXX=ccache g++"

And you might need to rerun qmake from the Build menu if QtCreator doesn't update automatically the makefile after you add that parameter.

like image 115
alexisdm Avatar answered Sep 22 '22 10:09

alexisdm