[Qt-creator] ccache usage

Orgad Shaneh orgads at gmail.com
Thu Dec 26 13:29:55 CET 2013


On Thu, Dec 26, 2013 at 2:03 PM, Kevin Krammer <kevin.krammer at kdab.com>wrote:

> On Thursday, 2013-12-26, 02:12:21, Muhammad Bashir Al-Noimi wrote:
> > On 12/25/2013 09:21 PM, Kevin Krammer wrote:
> > > You define it as the C and C++ compiler.
> > >
> > > E.g. by setting the CC and CXX environment variables or creating a
> > > specialized mkspec or by overwriting the QMAKE_CC and QMAKE_CXX
> > > variables, etc.
> > Sorry I didn't get it! may you please explain more?
>
> ccache "replaces" the compiler calls, i.e. the Makefile calls ccache, which
> the calls the actual compiler if it doesn't find a cached result.
>
> You can use any technique you want to make the build system pick up ccache
> instead of the actual compiler.  I've mentioned a couple of those, the
> ccache
> documentation has additional ones.
>
> Cheers,
> Kevin
> --
> Kevin Krammer | kevin.krammer at kdab.com | Software Engineer
> Klarälvdalens Datakonsult AB, a KDAB Group company
> Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
> KDAB - Qt Experts - Platform-independent software solutions
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
QMAKE_CC = ccache $$QMAKE_CC
QMAKE_CXX = ccache $$QMAKE_CXX

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20131226/007c062e/attachment.html>


More information about the Qt-creator mailing list