]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/i686_unknown_linux_gnu.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / i686_unknown_linux_gnu.rs
CommitLineData
2b03887a 1use crate::spec::{Cc, LinkerFlavor, Lld, SanitizerSet, StackProbeType, Target};
1a4d82fc 2
29967ef6
XL
3pub fn target() -> Target {
4 let mut base = super::linux_gnu_base::opts();
5e7ed085 5 base.cpu = "pentium4".into();
c30ab7b3 6 base.max_atomic_width = Some(64);
2b03887a
FG
7 base.supported_sanitizers = SanitizerSet::ADDRESS;
8 base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m32"]);
9 base.stack_probes = StackProbeType::X86;
1a4d82fc 10
29967ef6 11 Target {
5e7ed085 12 llvm_target: "i686-unknown-linux-gnu".into(),
29967ef6 13 pointer_width: 32,
dfeec247
XL
14 data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
15 f64:32:64-f80:32-n8:16:32-S128"
5e7ed085
FG
16 .into(),
17 arch: "x86".into(),
1a4d82fc 18 options: base,
29967ef6 19 }
1a4d82fc 20}