Re: --enable-ccache configure option - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: --enable-ccache configure option
Date
Msg-id CAA8=A7_gALrH1s31=6OR-rv0Ycim+rjN5d3DE=NPAC1viDzTxw@mail.gmail.com
Whole thread Raw
In response to Re: --enable-ccache configure option  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Fri, May 4, 2018 at 5:07 PM, Andres Freund <andres@anarazel.de> wrote:
> On 2018-05-04 17:04:38 -0400, Andrew Dunstan wrote:
>> On Fri, May 4, 2018 at 1:58 PM, Andres Freund <andres@anarazel.de> wrote:
>> > Hi,
>> >
>> > Now that there's several tools used during compilation that can benefit
>> > from ccache I wonder if it's time to add an option to configure for
>> > setting up ccache across the board.
>> >
>> > ISTM --enable-ccache would simplify setup for a number of people? And it
>> > shouldn't be hard to implement.
>> >
>>
>>
>> What exactly would it do? I use ccache all the time, have for years,
>> but it's not clear to me what can usefully be done by configure.
>
> Use ccache without having to set it up individually for CC, CLANG, CXX.
>

Ah, I see. Not a bad idea. The only thing is it should look to make
sure these aren't already set up with ccache - if they are it should
leave them alone. It's also possible to set up ccache in a transparent
mode, where you don't have to call ccache explicitly. Not sure what
the implications of that would be.

cheers

andrew


-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: --enable-ccache configure option
Next
From: Alvaro Herrera
Date:
Subject: Re: --enable-ccache configure option