Skip to content

Commit abeac8f

Browse files
authored
Update x86_64_uwp_windows_gnu.rs
Updated x86_64-uwp-windows-gnu to use CMPXCHG16B and SSE3
1 parent fcb06f7 commit abeac8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
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_uwp_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

1516
Target {
1617
llvm_target: "x86_64-pc-windows-gnu".into(),

0 commit comments

Comments
 (0)