mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
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
@ -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…
Reference in New Issue
Block a user