Use ArArchiveBuilder with the LLVM backend too

All regressions that were blocking usage of ArArchiveBuilder should now
be fixed.
This commit is contained in:
bjorn3 2024-08-10 17:45:39 +00:00
parent a57f73d320
commit c1f5350df5

View File

@ -106,9 +106,7 @@ pub struct LlvmArchiveBuilderBuilder;
impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
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
// implemented
if true {
if false {
Box::new(LlvmArchiveBuilder { sess, additions: Vec::new() })
} else {
Box::new(ArArchiveBuilder::new(sess, &LLVM_OBJECT_READER))