Skip to content

Commit 7e1bec9

Browse files
committed
Remove -fuse-linker-plugin since we do LTO before the linker is invoked
1 parent 499de70 commit 7e1bec9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/back/write.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,6 @@ pub(crate) unsafe fn codegen(
157157
if fat_lto {
158158
context.add_command_line_option("-flto=auto");
159159
context.add_command_line_option("-flto-partition=one");
160-
161-
// NOTE: without -fuse-linker-plugin, we get the following error:
162-
// lto1: internal compiler error: decompressed stream: Destination buffer is too small
163-
// TODO(antoyo): since we do not do LTO when the linker is invoked anymore, perhaps
164-
// the following flag is not necessary anymore.
165-
context.add_driver_option("-fuse-linker-plugin");
166160
}
167161

168162
context.add_driver_option("-Wl,-r");

0 commit comments

Comments
 (0)