1
Fork 0

rustc_target: Move linker_flavor from Target to TargetOptions

This commit is contained in:
Vadim Petrochenkov 2020-10-08 22:22:28 +03:00
parent b294cc71a2
commit d41fe05d1a
159 changed files with 120 additions and 244 deletions

View file

@ -7,9 +7,9 @@ pub fn target() -> Target {
llvm_target: "riscv32".to_string(),
pointer_width: 32,
arch: "riscv32".to_string(),
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
options: TargetOptions {
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
linker: Some("rust-lld".to_string()),
cpu: "generic-rv32".to_string(),
max_atomic_width: Some(0),