]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/x86_64_pc_windows_gnu.rs
New upstream version 1.72.1+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / x86_64_pc_windows_gnu.rs
CommitLineData
2b03887a 1use crate::spec::{Cc, LinkerFlavor, Lld, Target};
1a4d82fc 2
29967ef6 3pub fn target() -> Target {
ba9703b0 4 let mut base = super::windows_gnu_base::opts();
5e7ed085 5 base.cpu = "x86-64".into();
fe692bf9 6 base.plt_by_default = false;
fc512014 7 // Use high-entropy 64 bit address space for ASLR
2b03887a
FG
8 base.add_pre_link_args(
9 LinkerFlavor::Gnu(Cc::No, Lld::No),
10 &["-m", "i386pep", "--high-entropy-va"],
11 );
12 base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64", "-Wl,--high-entropy-va"]);
c30ab7b3 13 base.max_atomic_width = Some(64);
5e7ed085 14 base.linker = Some("x86_64-w64-mingw32-gcc".into());
1a4d82fc 15
29967ef6 16 Target {
5e7ed085 17 llvm_target: "x86_64-pc-windows-gnu".into(),
29967ef6 18 pointer_width: 64,
dfeec247 19 data_layout: "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
5e7ed085
FG
20 .into(),
21 arch: "x86_64".into(),
1a4d82fc 22 options: base,
29967ef6 23 }
1a4d82fc 24}