about summary refs log tree commit diff
path: root/src/rustllvm/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-07-24 07:37:03 +0000
committerbors <bors@rust-lang.org>2015-07-24 07:37:03 +0000
commit607f74df2ad6b6fb32ce5b862a9e48a8c4afdad2 (patch)
tree304e6e01187035a9e04c74da78bd0a3ea4943320 /src/rustllvm/ArchiveWrapper.cpp
parentc9ef1a5c19b8f9a254b0fb0b79a3bebf0722a9ce (diff)
parent4e67f9c611e31691aa1be1f2b1e09dc523fa7056 (diff)
downloadrust-607f74df2ad6b6fb32ce5b862a9e48a8c4afdad2.tar.gz
rust-607f74df2ad6b6fb32ce5b862a9e48a8c4afdad2.zip
Auto merge of #27227 - eternaleye:patch-1, r=alexcrichton
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.
Diffstat (limited to 'src/rustllvm/ArchiveWrapper.cpp')
-rw-r--r--src/rustllvm/ArchiveWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustllvm/ArchiveWrapper.cpp b/src/rustllvm/ArchiveWrapper.cpp
index 86225874df7..a40f0a245d1 100644
--- a/src/rustllvm/ArchiveWrapper.cpp
+++ b/src/rustllvm/ArchiveWrapper.cpp
@@ -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());