Re: [ccache] Why not cache link commands?

2012-09-19 Thread Andrew Stubbs
On 19/09/12 13:18, Eitan Adler wrote: Under what circumstances can the binary change but the build-id remain the same? I'm aware of line number, and file path differences in the debug info. Is there anything else? differing -frandom-seed options perhaps? If you've changed the command line the

Re: [ccache] Why not cache link commands?

2012-09-19 Thread Eitan Adler
On 19 September 2012 05:43, Andrew Stubbs wrote: > On 18/09/12 22:59, Mike Frysinger wrote: >> >> the linker's --build-id and associated .note.gnu.build-id section. you >> can't >> hash the entire object because it can change between compiles. build-id >> lets >> you say "regardless of the hash

Re: [ccache] Why not cache link commands?

2012-09-19 Thread Andrew Stubbs
On 18/09/12 22:59, Mike Frysinger wrote: the linker's --build-id and associated .note.gnu.build-id section. you can't hash the entire object because it can change between compiles. build-id lets you say "regardless of the hash of the entire object, we know the content that matters is unchanged"