We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 793a366 commit e9c4efbCopy full SHA for e9c4efb
src/librustc/back/link.rs
@@ -931,7 +931,12 @@ fn link_args(cmd: &mut Command,
931
}
932
933
// Rust does its' own LTO
934
- cmd.arg("-fno-lto").arg("-fno-use-linker-plugin");
+ cmd.arg("-fno-lto");
935
+
936
+ // clang fails hard if -fno-use-linker-plugin is passed
937
+ if sess.targ_cfg.os == abi::OsWindows {
938
+ cmd.arg("-fno-use-linker-plugin");
939
+ }
940
941
// If we're building a dylib, we don't use --gc-sections because LLVM has
942
// already done the best it can do, and we also don't want to eliminate the
0 commit comments