[ccache] how to use ccache

Mahmood NT nt_mahmood at yahoo.com
Sat Dec 8 06:45:01 GMT 2007


>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.

I post a message in CGAL (library that I use) mailing list and Andreas Meyer said:

"These are for caching a whole translation unit and wont help for CGAL, because here, most programs only have one translation unit (one C file,
 which includes everything else)."

What is your opinion?
 
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





      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping


More information about the ccache mailing list