rustc_target has had a lot of weird reexports for various reasons, but now we're at a point where we can actually start reducing their number. We remove weird shadowing-dependent behavior and import directly from rustc_abi instead of doing weird renaming imports. This is only incremental progress and does not entirely fix the crate.
19 lines
544 B
Rust
19 lines
544 B
Rust
use rustc_abi::Endian;
|
|
|
|
use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, TargetOptions};
|
|
|
|
pub(crate) fn opts() -> TargetOptions {
|
|
TargetOptions {
|
|
os: "none".into(),
|
|
endian: Endian::Little,
|
|
c_int_width: "32".into(),
|
|
linker_flavor: LinkerFlavor::Gnu(Cc::Yes, Lld::No),
|
|
executables: true,
|
|
panic_strategy: PanicStrategy::Abort,
|
|
relocation_model: RelocModel::Static,
|
|
emit_debug_gdb_scripts: false,
|
|
atomic_cas: false,
|
|
..Default::default()
|
|
}
|
|
}
|