Enable #[thread_local] for all windows-msvc targets

This commit is contained in:
Chris Denton 2021-12-17 15:47:44 +00:00
parent 2595d03827
commit 9ca26f111a
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE
7 changed files with 1 additions and 6 deletions

View File

@ -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 {

View File

@ -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(),

View File

@ -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(),

View File

@ -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,

View File

@ -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
} }

View File

@ -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(),

View File

@ -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(),