Skip to content

Commit c1f5350

Browse files
committed
Use ArArchiveBuilder with the LLVM backend too
All regressions that were blocking usage of ArArchiveBuilder should now be fixed.
1 parent a57f73d commit c1f5350

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/rustc_codegen_llvm/src/back/archive.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ pub struct LlvmArchiveBuilderBuilder;
106106

107107
impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
108108
fn new_archive_builder<'a>(&self, sess: &'a Session) -> Box<dyn ArchiveBuilder + 'a> {
109-
// FIXME use ArArchiveBuilder on most targets again once reading thin archives is
110-
// implemented
111-
if true {
109+
if false {
112110
Box::new(LlvmArchiveBuilder { sess, additions: Vec::new() })
113111
} else {
114112
Box::new(ArArchiveBuilder::new(sess, &LLVM_OBJECT_READER))

0 commit comments

Comments
 (0)