]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/i686_uwp_windows_gnu.rs
Auto merge of #97800 - pnkfelix:issue-97463-fix-aarch64-call-abi-does-not-zeroext...
[rust.git] / compiler / rustc_target / src / spec / i686_uwp_windows_gnu.rs
1 use crate::spec::{FramePointer, LinkerFlavor, Target};
2
3 pub fn target() -> Target {
4     let mut base = super::windows_uwp_gnu_base::opts();
5     base.cpu = "pentium4".into();
6     base.max_atomic_width = Some(64);
7     base.frame_pointer = FramePointer::Always; // Required for backtraces
8
9     // Mark all dynamic libraries and executables as compatible with the larger 4GiB address
10     // space available to x86 Windows binaries on x86_64.
11     base.add_pre_link_args(LinkerFlavor::Ld, &["-m", "i386pe", "--large-address-aware"]);
12     base.add_pre_link_args(LinkerFlavor::Gcc, &["-Wl,--large-address-aware"]);
13
14     Target {
15         llvm_target: "i686-pc-windows-gnu".into(),
16         pointer_width: 32,
17         data_layout: "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
18             i64:64-f80:32-n8:16:32-a:0:32-S32"
19             .into(),
20         arch: "x86".into(),
21         options: base,
22     }
23 }