Remove dependency on GCC's LTO linker plugin, since Rust does its' own LTO.
This commit is contained in:
parent
9f6d27c39f
commit
76c02af434
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user