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


AMDG

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 acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk