Enable #[thread_local]
for all windows-msvc targets
This commit is contained in:
parent
2595d03827
commit
9ca26f111a
@ -3,7 +3,6 @@ use crate::spec::Target;
|
|||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let mut base = super::windows_msvc_base::opts();
|
let mut base = super::windows_msvc_base::opts();
|
||||||
base.max_atomic_width = Some(64);
|
base.max_atomic_width = Some(64);
|
||||||
base.has_elf_tls = true;
|
|
||||||
base.features = "+neon,+fp-armv8".to_string();
|
base.features = "+neon,+fp-armv8".to_string();
|
||||||
|
|
||||||
Target {
|
Target {
|
||||||
|
@ -3,7 +3,6 @@ use crate::spec::Target;
|
|||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let mut base = super::windows_uwp_msvc_base::opts();
|
let mut base = super::windows_uwp_msvc_base::opts();
|
||||||
base.max_atomic_width = Some(64);
|
base.max_atomic_width = Some(64);
|
||||||
base.has_elf_tls = true;
|
|
||||||
|
|
||||||
Target {
|
Target {
|
||||||
llvm_target: "aarch64-pc-windows-msvc".to_string(),
|
llvm_target: "aarch64-pc-windows-msvc".to_string(),
|
||||||
|
@ -4,7 +4,6 @@ pub fn target() -> Target {
|
|||||||
let mut base = super::windows_uwp_msvc_base::opts();
|
let mut base = super::windows_uwp_msvc_base::opts();
|
||||||
base.cpu = "pentium4".to_string();
|
base.cpu = "pentium4".to_string();
|
||||||
base.max_atomic_width = Some(64);
|
base.max_atomic_width = Some(64);
|
||||||
base.has_elf_tls = true;
|
|
||||||
|
|
||||||
Target {
|
Target {
|
||||||
llvm_target: "i686-pc-windows-msvc".to_string(),
|
llvm_target: "i686-pc-windows-msvc".to_string(),
|
||||||
|
@ -9,7 +9,6 @@ pub fn target() -> Target {
|
|||||||
options: TargetOptions {
|
options: TargetOptions {
|
||||||
features: "+vfp3,+neon".to_string(),
|
features: "+vfp3,+neon".to_string(),
|
||||||
max_atomic_width: Some(64),
|
max_atomic_width: Some(64),
|
||||||
has_elf_tls: true,
|
|
||||||
// FIXME(jordanrh): use PanicStrategy::Unwind when SEH is
|
// FIXME(jordanrh): use PanicStrategy::Unwind when SEH is
|
||||||
// implemented for windows/arm in LLVM
|
// implemented for windows/arm in LLVM
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
|
@ -27,6 +27,7 @@ pub fn opts() -> TargetOptions {
|
|||||||
// linking some libraries which require a specific agreement, so it may
|
// linking some libraries which require a specific agreement, so it may
|
||||||
// not ever be possible for us to pass this flag.
|
// not ever be possible for us to pass this flag.
|
||||||
no_default_libraries: false,
|
no_default_libraries: false,
|
||||||
|
has_elf_tls: true,
|
||||||
|
|
||||||
..base
|
..base
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,6 @@ pub fn target() -> Target {
|
|||||||
let mut base = super::windows_msvc_base::opts();
|
let mut base = super::windows_msvc_base::opts();
|
||||||
base.cpu = "x86-64".to_string();
|
base.cpu = "x86-64".to_string();
|
||||||
base.max_atomic_width = Some(64);
|
base.max_atomic_width = Some(64);
|
||||||
base.has_elf_tls = true;
|
|
||||||
|
|
||||||
Target {
|
Target {
|
||||||
llvm_target: "x86_64-pc-windows-msvc".to_string(),
|
llvm_target: "x86_64-pc-windows-msvc".to_string(),
|
||||||
|
@ -4,7 +4,6 @@ pub fn target() -> Target {
|
|||||||
let mut base = super::windows_uwp_msvc_base::opts();
|
let mut base = super::windows_uwp_msvc_base::opts();
|
||||||
base.cpu = "x86-64".to_string();
|
base.cpu = "x86-64".to_string();
|
||||||
base.max_atomic_width = Some(64);
|
base.max_atomic_width = Some(64);
|
||||||
base.has_elf_tls = true;
|
|
||||||
|
|
||||||
Target {
|
Target {
|
||||||
llvm_target: "x86_64-pc-windows-msvc".to_string(),
|
llvm_target: "x86_64-pc-windows-msvc".to_string(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user