]> git.lizzy.rs Git - rust.git/commitdiff
As of 4.9.2, gcc started passing -fno-lto to collect2, or to ld if collect2 cannot...
authorVadim Chugunov <vadimcn@gmail.com>
Sun, 9 Nov 2014 02:32:15 +0000 (18:32 -0800)
committerVadim Chugunov <vadimcn@gmail.com>
Sun, 9 Nov 2014 02:33:40 +0000 (18:33 -0800)
On the bright side, -fno-use-linker-plugin still works to suppress gcc's LTO, so we can drop -fno-lto.

src/librustc/back/link.rs

index 58266f2ea32247ebc743225879275ac51cdfb0e8..f88feb9458047760671cb05134657ddca57a7763 100644 (file)
@@ -890,9 +890,6 @@ fn link_args(cmd: &mut Command,
         cmd.arg(obj_filename.with_extension("metadata.o"));
     }
 
-    // Rust does its' own LTO
-    cmd.arg("-fno-lto");
-
     if t.options.is_like_osx {
         // The dead_strip option to the linker specifies that functions and data
         // unreachable by the entry point will be removed. This is quite useful