Skip to content

Commit f360e72

Browse files
committed
Remove -fuse-linker-plugin since we do LTO before the linker is invoked
1 parent 337998a commit f360e72

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
@@ -169,12 +169,6 @@ pub(crate) unsafe fn codegen(
169169
if fat_lto {
170170
context.add_command_line_option("-flto=auto");
171171
context.add_command_line_option("-flto-partition=one");
172-
173-
// NOTE: without -fuse-linker-plugin, we get the following error:
174-
// lto1: internal compiler error: decompressed stream: Destination buffer is too small
175-
// TODO(antoyo): since we do not do LTO when the linker is invoked anymore, perhaps
176-
// the following flag is not necessary anymore.
177-
context.add_driver_option("-fuse-linker-plugin");
178172
}
179173

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

0 commit comments

Comments
 (0)