rustc_target: Refactor internal linker flavors
In accordance with the design from https://github.com/rust-lang/rust/pull/96827#issuecomment-1208441595
This commit is contained in:
parent
4bd30785eb
commit
572b6a9c60
104 changed files with 569 additions and 438 deletions
|
@ -1,11 +1,11 @@
|
|||
use crate::abi::Endian;
|
||||
use crate::spec::{LinkerFlavor, Target};
|
||||
use crate::spec::{Cc, LinkerFlavor, Lld, Target};
|
||||
|
||||
pub fn target() -> Target {
|
||||
let mut base = super::openbsd_base::opts();
|
||||
base.endian = Endian::Big;
|
||||
base.cpu = "v9".into();
|
||||
base.add_pre_link_args(LinkerFlavor::Gcc, &["-m64"]);
|
||||
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]);
|
||||
base.max_atomic_width = Some(64);
|
||||
|
||||
Target {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue