mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 00:00:35 +00:00
17 lines
532 B
Rust
17 lines
532 B
Rust
use crate::abi::Endian;
|
|
use crate::spec::{Target, TargetOptions};
|
|
|
|
pub fn target() -> Target {
|
|
let mut base = super::linux_gnu_base::opts();
|
|
base.cpu = "M68020".into();
|
|
base.max_atomic_width = Some(32);
|
|
|
|
Target {
|
|
llvm_target: "m68k-unknown-linux-gnu".into(),
|
|
pointer_width: 32,
|
|
data_layout: "E-m:e-p:32:16:32-i8:8:8-i16:16:16-i32:16:32-n8:16:32-a:0:16-S16".into(),
|
|
arch: "m68k".into(),
|
|
options: TargetOptions { endian: Endian::Big, mcount: "_mcount".into(), ..base },
|
|
}
|
|
}
|