mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Use target-agnostic LLD flags in bootstrap for use-lld
This commit is contained in:
parent
b8ff7b682e
commit
76e1302076
@ -474,13 +474,13 @@ pub fn linker_flags(
|
||||
if stage == 0 && target.is_windows() {
|
||||
args.push("-Clink-arg=-fuse-ld=lld".to_string());
|
||||
} else {
|
||||
args.push("-Clinker-flavor=gnu-lld-cc".to_string());
|
||||
args.push("-Zlinker-features=+lld".to_string());
|
||||
}
|
||||
// FIXME(kobzol): remove this flag once MCP510 gets stabilized
|
||||
args.push("-Zunstable-options".to_string());
|
||||
}
|
||||
LldMode::SelfContained => {
|
||||
args.push("-Clinker-flavor=gnu-lld-cc".to_string());
|
||||
args.push("-Zlinker-features=+lld".to_string());
|
||||
args.push("-Clink-self-contained=+linker".to_string());
|
||||
// FIXME(kobzol): remove this flag once MCP510 gets stabilized
|
||||
args.push("-Zunstable-options".to_string());
|
||||
|
Loading…
Reference in New Issue
Block a user