Revert back to LlvmArchiveBuilder on all platforms
ArArchiveBuilder doesn't support reading thin archives, causing a regression.
This commit is contained in:
parent
2cf101c3e7
commit
de363d54c4
@ -108,7 +108,9 @@ pub struct LlvmArchiveBuilderBuilder;
|
|||||||
|
|
||||||
impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
|
impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
|
||||||
fn new_archive_builder<'a>(&self, sess: &'a Session) -> Box<dyn ArchiveBuilder<'a> + 'a> {
|
fn new_archive_builder<'a>(&self, sess: &'a Session) -> Box<dyn ArchiveBuilder<'a> + 'a> {
|
||||||
if sess.target.arch == "wasm32" || sess.target.arch == "wasm64" {
|
// FIXME use ArArchiveBuilder on most targets again once reading thin archives is
|
||||||
|
// implemented
|
||||||
|
if true || sess.target.arch == "wasm32" || sess.target.arch == "wasm64" {
|
||||||
Box::new(LlvmArchiveBuilder { sess, additions: Vec::new() })
|
Box::new(LlvmArchiveBuilder { sess, additions: Vec::new() })
|
||||||
} else {
|
} else {
|
||||||
Box::new(ArArchiveBuilder::new(sess, get_llvm_object_symbols))
|
Box::new(ArArchiveBuilder::new(sess, get_llvm_object_symbols))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user