]>
git.proxmox.com Git - rustc.git/blob - compiler/rustc_target/src/spec/mips64_openwrt_linux_musl.rs
1 /// A target tuple for OpenWrt MIPS64 targets
3 use crate::abi
::Endian
;
4 use crate::spec
::{Target, TargetOptions}
;
6 pub fn target() -> Target
{
7 let mut base
= super::linux_musl_base
::opts();
8 base
.cpu
= "mips64r2".into();
9 base
.features
= "+mips64r2,+soft-float".into();
10 base
.max_atomic_width
= Some(64);
11 base
.crt_static_default
= false;
14 // LLVM doesn't recognize "muslabi64" yet.
15 llvm_target
: "mips64-unknown-linux-musl".into(),
17 data_layout
: "E-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128".into(),
18 arch
: "mips64".into(),
19 options
: TargetOptions
{
22 mcount
: "_mcount".into(),