Switch to LLD as default linker for loongarch64-unknown-none*

This commit is contained in:
WANG Rui 2023-06-07 23:43:48 +08:00
parent 439d066bcf
commit 815868d803
2 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,8 @@ pub fn target() -> Target {
options: TargetOptions {
cpu: "generic".into(),
features: "+f,+d".into(),
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::No),
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
linker: Some("rust-lld".into()),
llvm_abiname: "lp64d".into(),
max_atomic_width: Some(64),
relocation_model: RelocModel::Static,

View File

@ -11,7 +11,8 @@ pub fn target() -> Target {
cpu: "generic".into(),
features: "-f,-d".into(),
abi: "softfloat".into(),
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::No),
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
linker: Some("rust-lld".into()),
llvm_abiname: "lp64s".into(),
max_atomic_width: Some(64),
relocation_model: RelocModel::Static,