Write deterministic archives
Currently, `rustc` generates nondeterministic archives, which contain system timestamps. These don't really serve any useful purpose, and enabling deterministic archives moves us a little closer to completely deterministic builds. For a small toy library using `std::ops::{Deref,DerefMut}`, this change actually results in a bit-for-bit identical build every time.
This commit is contained in:
parent
8d91bbd90a
commit
4e67f9c611
@ -168,7 +168,7 @@ LLVMRustWriteArchive(char *Dst,
|
||||
Members.push_back(NewArchiveIterator(Member->child, Member->name));
|
||||
}
|
||||
}
|
||||
auto pair = writeArchive(Dst, Members, WriteSymbtab, Kind, false);
|
||||
auto pair = writeArchive(Dst, Members, WriteSymbtab, Kind, true);
|
||||
if (!pair.second)
|
||||
return 0;
|
||||
LLVMRustSetLastError(pair.second.message().c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user