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:
eternaleye 2015-07-22 23:54:59 -07:00
parent 8d91bbd90a
commit 4e67f9c611

View File

@ -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());