Added sahf feature to windows targets
This commit is contained in:
parent
1c6dda7277
commit
376c7b9892
@ -3,7 +3,7 @@ use crate::spec::{base, Cc, LinkerFlavor, Lld, Target};
|
|||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let mut base = base::windows_gnu::opts();
|
let mut base = base::windows_gnu::opts();
|
||||||
base.cpu = "x86-64".into();
|
base.cpu = "x86-64".into();
|
||||||
base.features = "+cx16,+sse3".into();
|
base.features = "+cx16,+sse3,+sahf".into();
|
||||||
base.plt_by_default = false;
|
base.plt_by_default = false;
|
||||||
// Use high-entropy 64 bit address space for ASLR
|
// Use high-entropy 64 bit address space for ASLR
|
||||||
base.add_pre_link_args(
|
base.add_pre_link_args(
|
||||||
|
@ -3,7 +3,7 @@ use crate::spec::{base, Cc, LinkerFlavor, Lld, Target};
|
|||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let mut base = base::windows_gnullvm::opts();
|
let mut base = base::windows_gnullvm::opts();
|
||||||
base.cpu = "x86-64".into();
|
base.cpu = "x86-64".into();
|
||||||
base.features = "+cx16,+sse3".into();
|
base.features = "+cx16,+sse3,+sahf".into();
|
||||||
base.plt_by_default = false;
|
base.plt_by_default = false;
|
||||||
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]);
|
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]);
|
||||||
base.max_atomic_width = Some(128);
|
base.max_atomic_width = Some(128);
|
||||||
|
@ -3,7 +3,7 @@ use crate::spec::{base, SanitizerSet, Target};
|
|||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let mut base = base::windows_msvc::opts();
|
let mut base = base::windows_msvc::opts();
|
||||||
base.cpu = "x86-64".into();
|
base.cpu = "x86-64".into();
|
||||||
base.features = "+cx16,+sse3".into();
|
base.features = "+cx16,+sse3,+sahf".into();
|
||||||
base.plt_by_default = false;
|
base.plt_by_default = false;
|
||||||
base.max_atomic_width = Some(128);
|
base.max_atomic_width = Some(128);
|
||||||
base.supported_sanitizers = SanitizerSet::ADDRESS;
|
base.supported_sanitizers = SanitizerSet::ADDRESS;
|
||||||
|
@ -3,7 +3,7 @@ use crate::spec::{base, Cc, LinkerFlavor, Lld, Target};
|
|||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let mut base = base::windows_uwp_gnu::opts();
|
let mut base = base::windows_uwp_gnu::opts();
|
||||||
base.cpu = "x86-64".into();
|
base.cpu = "x86-64".into();
|
||||||
base.features = "+cx16,+sse3".into();
|
base.features = "+cx16,+sse3,+sahf".into();
|
||||||
base.plt_by_default = false;
|
base.plt_by_default = false;
|
||||||
// Use high-entropy 64 bit address space for ASLR
|
// Use high-entropy 64 bit address space for ASLR
|
||||||
base.add_pre_link_args(
|
base.add_pre_link_args(
|
||||||
|
@ -3,7 +3,7 @@ use crate::spec::{base, Target};
|
|||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let mut base = base::windows_uwp_msvc::opts();
|
let mut base = base::windows_uwp_msvc::opts();
|
||||||
base.cpu = "x86-64".into();
|
base.cpu = "x86-64".into();
|
||||||
base.features = "+cx16,+sse3".into();
|
base.features = "+cx16,+sse3,+sahf".into();
|
||||||
base.plt_by_default = false;
|
base.plt_by_default = false;
|
||||||
base.max_atomic_width = Some(128);
|
base.max_atomic_width = Some(128);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user