]> git.lizzy.rs Git - rust.git/commitdiff
Remove dependency on GCC's LTO linker plugin, since Rust does its' own LTO.
authorVadim Chugunov <vadimcn@gmail.com>
Wed, 3 Sep 2014 07:41:53 +0000 (00:41 -0700)
committerVadim Chugunov <vadimcn@gmail.com>
Thu, 11 Sep 2014 04:20:59 +0000 (21:20 -0700)
src/librustc/back/link.rs

index bf026560c6afd9ccfb552919ac27abd1d7619a54..e418284ffce7ab9c8f6eaf192ffbd43699483682 100644 (file)
@@ -929,6 +929,9 @@ fn link_args(cmd: &mut Command,
         cmd.arg("-nodefaultlibs");
     }
 
+    // Rust does its' own LTO
+    cmd.arg("-fno-lto").arg("-fno-use-linker-plugin");
+
     // If we're building a dylib, we don't use --gc-sections because LLVM has
     // already done the best it can do, and we also don't want to eliminate the
     // metadata. If we're building an executable, however, --gc-sections drops