]>
Commit | Line | Data |
---|---|---|
2b03887a | 1 | use crate::spec::{Cc, LinkerFlavor, Lld, SanitizerSet, StackProbeType, Target}; |
d9579d0f | 2 | |
29967ef6 | 3 | pub fn target() -> Target { |
a7813a04 | 4 | let mut base = super::linux_musl_base::opts(); |
5e7ed085 | 5 | base.cpu = "x86-64".into(); |
c30ab7b3 | 6 | base.max_atomic_width = Some(64); |
2b03887a FG |
7 | base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]); |
8 | base.stack_probes = StackProbeType::X86; | |
f035d41b | 9 | base.static_position_independent_executables = true; |
3c0e092e XL |
10 | base.supported_sanitizers = SanitizerSet::ADDRESS |
11 | | SanitizerSet::CFI | |
12 | | SanitizerSet::LEAK | |
13 | | SanitizerSet::MEMORY | |
14 | | SanitizerSet::THREAD; | |
9ffffee4 | 15 | base.supports_xray = true; |
d9579d0f | 16 | |
29967ef6 | 17 | Target { |
5e7ed085 | 18 | llvm_target: "x86_64-unknown-linux-musl".into(), |
29967ef6 | 19 | pointer_width: 64, |
dfeec247 | 20 | data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" |
5e7ed085 FG |
21 | .into(), |
22 | arch: "x86_64".into(), | |
d9579d0f | 23 | options: base, |
29967ef6 | 24 | } |
d9579d0f | 25 | } |