From 7e1bec912bf02cf36fe577e81c3f7955747522a2 Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Fri, 11 Apr 2025 10:35:24 -0400 Subject: [PATCH] Remove -fuse-linker-plugin since we do LTO before the linker is invoked --- src/back/write.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/back/write.rs b/src/back/write.rs index 51c5ba73e32..456c7951808 100644 --- a/src/back/write.rs +++ b/src/back/write.rs @@ -157,12 +157,6 @@ pub(crate) unsafe fn codegen( if fat_lto { context.add_command_line_option("-flto=auto"); context.add_command_line_option("-flto-partition=one"); - - // NOTE: without -fuse-linker-plugin, we get the following error: - // lto1: internal compiler error: decompressed stream: Destination buffer is too small - // TODO(antoyo): since we do not do LTO when the linker is invoked anymore, perhaps - // the following flag is not necessary anymore. - context.add_driver_option("-fuse-linker-plugin"); } context.add_driver_option("-Wl,-r");