Skip to content

Commit 62b4c2a

Browse files
authored
Update x86_64_pc_windows_gnu.rs
Updated x86_64-pc-windows-gnu to use CMPXCHG16B and SSE3
1 parent fcb06f7 commit 62b4c2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_target/src/spec/targets/x86_64_pc_windows_gnu.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ use crate::spec::{base, Cc, LinkerFlavor, Lld, Target};
33
pub fn target() -> Target {
44
let mut base = base::windows_gnu::opts();
55
base.cpu = "x86-64".into();
6+
base.features = "+cx16,+sse3".into();
67
base.plt_by_default = false;
78
// Use high-entropy 64 bit address space for ASLR
89
base.add_pre_link_args(
910
LinkerFlavor::Gnu(Cc::No, Lld::No),
1011
&["-m", "i386pep", "--high-entropy-va"],
1112
);
1213
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64", "-Wl,--high-entropy-va"]);
13-
base.max_atomic_width = Some(64);
14+
base.max_atomic_width = Some(128);
1415
base.linker = Some("x86_64-w64-mingw32-gcc".into());
1516

1617
Target {

0 commit comments

Comments
 (0)