[cfe-users] Reproducible builds

Stephan Gatzka via cfe-users cfe-users at lists.llvm.org
Mon Aug 24 09:41:15 PDT 2015


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



More information about the cfe-users mailing list