rustc_target/spec/targets/
x86_64_unikraft_linux_musl.rs
1use crate::spec::{Cc, LinkerFlavor, Lld, StackProbeType, Target, TargetOptions, base};
2
3pub(crate) fn target() -> Target {
4 Target {
5 llvm_target: "x86_64-unknown-linux-musl".into(),
6 metadata: crate::spec::TargetMetadata {
7 description: Some("64-bit Unikraft with musl 1.2.3".into()),
8 tier: Some(3),
9 host_tools: Some(false),
10 std: Some(true),
11 },
12 pointer_width: 64,
13 arch: "x86_64".into(),
14 data_layout:
15 "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128".into(),
16 options: TargetOptions {
17 cpu: "x86-64".into(),
18 plt_by_default: false,
19 pre_link_args: TargetOptions::link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]),
20 max_atomic_width: Some(64),
21 stack_probes: StackProbeType::Inline,
22 ..base::unikraft_linux_musl::opts()
23 },
24 }
25}