Use ArArchiveBuilder with the LLVM backend too
All regressions that were blocking usage of ArArchiveBuilder should now be fixed.
This commit is contained in:
parent
a57f73d320
commit
c1f5350df5
1 changed files with 1 additions and 3 deletions
|
@ -106,9 +106,7 @@ pub struct LlvmArchiveBuilderBuilder;
|
||||||
|
|
||||||
impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
|
impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
|
||||||
fn new_archive_builder<'a>(&self, sess: &'a Session) -> Box<dyn ArchiveBuilder + 'a> {
|
fn new_archive_builder<'a>(&self, sess: &'a Session) -> Box<dyn ArchiveBuilder + 'a> {
|
||||||
// FIXME use ArArchiveBuilder on most targets again once reading thin archives is
|
if false {
|
||||||
// implemented
|
|
||||||
if true {
|
|
||||||
Box::new(LlvmArchiveBuilder { sess, additions: Vec::new() })
|
Box::new(LlvmArchiveBuilder { sess, additions: Vec::new() })
|
||||||
} else {
|
} else {
|
||||||
Box::new(ArArchiveBuilder::new(sess, &LLVM_OBJECT_READER))
|
Box::new(ArArchiveBuilder::new(sess, &LLVM_OBJECT_READER))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue