Use target-agnostic LLD flags in bootstrap for use-lld

This commit is contained in:
Jakub Beránek 2025-04-04 18:29:20 +02:00
parent b8ff7b682e
commit 76e1302076

View File

@ -474,13 +474,13 @@ pub fn linker_flags(
if stage == 0 && target.is_windows() { if stage == 0 && target.is_windows() {
args.push("-Clink-arg=-fuse-ld=lld".to_string()); args.push("-Clink-arg=-fuse-ld=lld".to_string());
} else { } 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 // FIXME(kobzol): remove this flag once MCP510 gets stabilized
args.push("-Zunstable-options".to_string()); args.push("-Zunstable-options".to_string());
} }
LldMode::SelfContained => { 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()); args.push("-Clink-self-contained=+linker".to_string());
// FIXME(kobzol): remove this flag once MCP510 gets stabilized // FIXME(kobzol): remove this flag once MCP510 gets stabilized
args.push("-Zunstable-options".to_string()); args.push("-Zunstable-options".to_string());