Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2005 16:30:39 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        tridge@samba.org
Cc:        "Andrew P." <infofarmer@gmail.com>, sobomax@portaone.com, freebsd-ports@freebsd.org, Jens Schweikhardt <schweikh@schweikhardt.net>
Subject:   Re: FreeBSD ccache port is wonderfiul!
Message-ID:  <20051125163039.6tc9me1ecgkwwgg4@netchild.homeip.net>
In-Reply-To: <17286.14954.340289.972852@samba.org>
References:  <200511210625.16973.ringworm01@gmail.com> <cb5206420511210825v7b4dc852jf3f29f325d8ed7fd@mail.gmail.com> <20051124182645.GA1923@schweikhardt.net> <17286.14954.340289.972852@samba.org>

next in thread | previous in thread | raw e-mail | index | archive | help
tridge@samba.org wrote:

> Of course, hashing the compiler binary isn't a perfect way of
> detecting that a compiler hasn't changed, as compilers often use
> multiple stages with separate binaries and the 2nd stage might have
> changed with no change in the main cc binary. That's why ccache
> normally uses the size/mtime, as that tends to change when a new
> compiler is installed, so its more conservative than hashing the
> binary. Ideally ccache would have some way of asking the compiler for
> some sort if ID that guarantees its the same, but that would be pretty
> tricky to add to compilers I think.

You mean something like the compiler version? ;-)

Ok, not every compiler has the same switches, so it's not easy to do it
automatically, but what about activating this "detect change by ID"-feature
only if the user tells ccache how to get the ID (e.g. --ask-for-id-with=-v
or CCACHE_COMPILER_ID_SWITCH=-v)?

Bye,
Alexander.

-- 
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137
BOFH excuse #22:

monitor resolution too high





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051125163039.6tc9me1ecgkwwgg4>