[ccache] how to use ccache

Mahmood NT nt_mahmood at yahoo.com
Wed Dec 5 08:39:50 GMT 2007


Thanks

I will try

Mahmood NT


----- Original Message ----
From: Francois Marier <francois at debian.org>
To: Mahmood NT <nt_mahmood at yahoo.com>
Cc: ccache at lists.samba.org
Sent: Wednesday, December 5, 2007 11:47:53 AM
Subject: Re: [ccache] how to use ccache

On 2007-12-04 at 23:41:16, Mahmood NT wrote:
> This make file is a little bit long. First, one question? Is ccache
> dependant on makefile. This is not good....

Well, it is dependent on users configuring their system to compile with
ccache.  Normally, this happen automatically when you use the symlink trick
I wrote about earlier.

In this case, however, your makefile is explicitely requesting a specific
compiler:

> CGAL_CXX = /usr/bin/g++

If you want to use ccache, you need to either:

1- change this to point to g++ without the path, and rely on the symlinks to
  pick up /usr/bin/ccache instead of /usr/bin/g++

2- change this variable to invoke g++ through ccache:

  CGAL_CXX = /usr/bin/ccache /usr/bin/g++

Both of these methods are described in more details in the ccache manpage.

Francois


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 



More information about the ccache mailing list