[Qt-creator] ccache usage
Oswald Buddenhagen
oswald.buddenhagen at digia.com
Mon Jan 6 14:02:10 CET 2014
On Wed, Dec 25, 2013 at 09:21:50PM +0100, Kevin Krammer wrote:
> On Wednesday, 2013-12-25, 21:53:10, Muhammad Bashir Al-Noimi wrote:
> > Howdy,
> >
> > How can I use ccache in Qt Creator? Do I need to add something in .pro file?
>
> 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.
>
a much nicer way is compiling the attached program, installing
gcc/g++/cc/c++/make symlinks in a place where it is found first (i have
/usr/local/bin first in PATH, so that's a good place), exporting
WRAPCCFLAGS (i have WRAPCCFLAGS=cache,ice=40, because i want caching and
have a fairly big icecream farm at hand), and everything just works.
always. unless you run into a buildsystem which does not support
parallelization or does not like ccache or icecream, then you may need
to adjust the flags to disable it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrapcc3.c
Type: text/x-csrc
Size: 7910 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140106/7bd71923/attachment.c>
More information about the Qt-creator
mailing list