about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVadim Chugunov <vadimcn@gmail.com>2014-11-08 18:32:15 -0800
committerVadim Chugunov <vadimcn@gmail.com>2014-11-08 18:33:40 -0800
commit3d9a346aa3ed6fc30e34bd7124e20e77c66cbcb0 (patch)
tree36a0fb2b2a7ce875039fb18ff3200665d07ac4e8
parent6ee56c9a5febad45865b7d41422b7ae4d996fcaa (diff)
downloadrust-3d9a346aa3ed6fc30e34bd7124e20e77c66cbcb0.tar.gz
rust-3d9a346aa3ed6fc30e34bd7124e20e77c66cbcb0.zip
As of 4.9.2, gcc started passing -fno-lto to collect2, or to ld if collect2 cannot be found. The latter is the case for our bundles, because we don't include collect2. Unfortunately, ld does not understand this option and errors out.
On the bright side, -fno-use-linker-plugin still works to suppress gcc's LTO, so we can drop -fno-lto.
-rw-r--r--src/librustc/back/link.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs
index 58266f2ea32..f88feb94580 100644
--- a/src/librustc/back/link.rs
+++ b/src/librustc/back/link.rs
@@ -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