Re: --enable-ccache configure option

From: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: --enable-ccache configure option
Date: 2018-05-04 21:13:28
Message-ID: CAA8=A7_gALrH1s31=6OR-rv0Ycim+rjN5d3DE=NPAC1viDzTxw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, May 4, 2018 at 5:07 PM, Andres Freund <andres(at)anarazel(dot)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(at)anarazel(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2018-05-04 21:14:05 Re: --enable-ccache configure option
Previous Message Andres Freund 2018-05-04 21:07:43 Re: --enable-ccache configure option