Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to detect and specify ccache in jamroot?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-02-27 10:14:12


On 02/26/2015 09:21 PM, Steve Lorimer wrote:
> Hi
> Can anyone help me with a Jam snippet which would allow me to:
> - Detect whether ccache is available on the current system
> - If available, build using ccache
> Our system builds exclusively using gcc on linux, in case that is of any use

import common ;

local CCACHE = [ common.find-tool ccache ] ;
using gcc : : $(CCACHE) g++ ;

if ccache is not present, $(CCACHE) will expand
to nothing and the command will just be g++.

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at