[cfe-dev] Clang and binary Reproducibility

Joerg Sonnenberger joerg at britannica.bec.de
Sun Mar 22 09:35:10 PDT 2015


On Sun, Mar 22, 2015 at 08:08:53AM -0700, David Blaikie wrote:
> if by 'binary reproducibility' you mean two matching invocations of the
> compiler (same arguments, same input, same headers, etc) should produce
> exactly the same bytes in the binary - yes, Clang supports this.

You might need to pass -frandom-seed for this purpose, e.g. a hash of
the name of the input files + some project cookie.

Joerg



More information about the cfe-dev mailing list