Add fixme for removing LlvmArchiveBuilder in the future

This commit is contained in:
bjorn3 2024-08-10 18:49:36 +00:00
parent c1f5350df5
commit d63a067bfd

View File

@ -106,6 +106,10 @@ 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> {
// Keeping LlvmArchiveBuilder around in case of a regression caused by using
// ArArchiveBuilder.
// FIXME remove a couple of months after #128936 gets merged in case no
// regression is found.
if false { if false {
Box::new(LlvmArchiveBuilder { sess, additions: Vec::new() }) Box::new(LlvmArchiveBuilder { sess, additions: Vec::new() })
} else { } else {