This is an archive of the discontinued LLVM Phabricator instance.

[gn build] Make build locally deterministic
ClosedPublic

Authored by thakis on Feb 12 2020, 6:16 PM.

Details

Summary

This follows http://blog.llvm.org/2019/11/deterministic-builds-with-clang-and-lld.html
to make the GN build locally deterministic.

With this, I've built lld at two different build paths on my Windows box and got
identical binaries. (I'd expect the same to happen on Linux, and with other
binaries.)

This doesn't have the bits to get universal determinism yet.

Diff Detail

Event Timeline

thakis created this revision.Feb 12 2020, 6:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 12 2020, 6:16 PM
Herald added a subscriber: mgrang. · View Herald Transcript
rnk accepted this revision.Feb 14 2020, 11:31 AM

lgtm

This revision is now accepted and ready to land.Feb 14 2020, 11:31 AM
This revision was automatically updated to reflect the committed changes.