[cfe-users] Reproducible builds

don hinton via cfe-users cfe-users at lists.llvm.org
Mon Aug 24 11:20:38 PDT 2015


Sorry, didn't read closely enough.  Looks like it's currently ignored:

$ grep -n frandom_seed include/clang/Driver/Options.td
949:def frandom_seed_EQ : Joined<["-"], "frandom-seed=">,
Group<clang_ignored_f_Group>;

http://reviews.llvm.org/D3391



On Mon, Aug 24, 2015 at 12:41 PM, Stephan Gatzka <stephan.gatzka at gmail.com>
wrote:

> Well,
>
> that's not exactly what I meant. In gcc, if you use -flto a c file
> compiled twice leads to different binaries, if you don't add
> -frandom-seed=<something>.
>
> clang also supports the switch -frandom-seed=<something>, but the object
> files produced by clang are always binary equal.
>
> Meanwhile I think clang intorduced -frandom-seed only for gcc
> compatibility:
>
> https://github.com/llvm-mirror/clang/blob/master/include/clang/Driver/Options.td#L949
>
>
> But thanks for the hint. :)
>
> Regards,
>
> Stephan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20150824/f4787e6a/attachment.html>


More information about the cfe-users mailing list