We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f6d27c commit 76c02afCopy full SHA for 76c02af
src/librustc/back/link.rs
@@ -929,6 +929,9 @@ fn link_args(cmd: &mut Command,
929
cmd.arg("-nodefaultlibs");
930
}
931
932
+ // Rust does its' own LTO
933
+ cmd.arg("-fno-lto").arg("-fno-use-linker-plugin");
934
+
935
// If we're building a dylib, we don't use --gc-sections because LLVM has
936
// already done the best it can do, and we also don't want to eliminate the
937
// metadata. If we're building an executable, however, --gc-sections drops
0 commit comments