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
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ LLVMRustWriteArchive(char *Dst,
|
||||||
Members.push_back(NewArchiveIterator(Member->child, Member->name));
|
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)
|
if (!pair.second)
|
||||||
return 0;
|
return 0;
|
||||||
LLVMRustSetLastError(pair.second.message().c_str());
|
LLVMRustSetLastError(pair.second.message().c_str());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue