How to produce deterministic binary output with g++?

后端 未结 3 2004
粉色の甜心
粉色の甜心 2020-12-01 08:18

I work in a very regulated environment where we need to be able to produce identical binary input give the same source code every time be build out products. We currently u

3条回答
  •  孤城傲影
    2020-12-01 08:49

    We also depend on bit-identical rebuilds, and are using gcc-4.7.x.

    Besides setting PWD=/proc/self/cwd and using -frandom-seed=, there are a handful of patches, which can be found in svn://gcc.gnu.org/svn/gcc/branches/google/gcc-4_7 branch.

提交回复
热议问题