]> git.lizzy.rs Git - rust.git/commitdiff
Enable `#[thread_local]` for all windows-msvc targets
authorChris Denton <christophersdenton@gmail.com>
Fri, 17 Dec 2021 15:47:44 +0000 (15:47 +0000)
committerChris Denton <christophersdenton@gmail.com>
Fri, 17 Dec 2021 15:47:44 +0000 (15:47 +0000)
compiler/rustc_target/src/spec/aarch64_pc_windows_msvc.rs
compiler/rustc_target/src/spec/aarch64_uwp_windows_msvc.rs
compiler/rustc_target/src/spec/i686_uwp_windows_msvc.rs
compiler/rustc_target/src/spec/thumbv7a_uwp_windows_msvc.rs
compiler/rustc_target/src/spec/windows_msvc_base.rs
compiler/rustc_target/src/spec/x86_64_pc_windows_msvc.rs
compiler/rustc_target/src/spec/x86_64_uwp_windows_msvc.rs

index 1369d9d079856a9c262be7e22b8bb3fbff1385ca..a9a0977e70285c9c5eed6174a2df26a7071277ba 100644 (file)
@@ -3,7 +3,6 @@
 pub fn target() -> Target {
     let mut base = super::windows_msvc_base::opts();
     base.max_atomic_width = Some(64);
-    base.has_elf_tls = true;
     base.features = "+neon,+fp-armv8".to_string();
 
     Target {
index e0a81df2b0deca700eaeb1e2372a60827e43dec7..db4eb204e0b127307cfcaba2979b297e3bcba752 100644 (file)
@@ -3,7 +3,6 @@
 pub fn target() -> Target {
     let mut base = super::windows_uwp_msvc_base::opts();
     base.max_atomic_width = Some(64);
-    base.has_elf_tls = true;
 
     Target {
         llvm_target: "aarch64-pc-windows-msvc".to_string(),
index ce6200be81fd48fc02dd5c335005254753d10173..05f204c56044612c2ee9825d86ccee642206275a 100644 (file)
@@ -4,7 +4,6 @@ pub fn target() -> Target {
     let mut base = super::windows_uwp_msvc_base::opts();
     base.cpu = "pentium4".to_string();
     base.max_atomic_width = Some(64);
-    base.has_elf_tls = true;
 
     Target {
         llvm_target: "i686-pc-windows-msvc".to_string(),
index b44c0085005217b3cc225be14424e92ec9e62436..72d39ef9a95ac1085c347c5d860dd662fde9c5ba 100644 (file)
@@ -9,7 +9,6 @@ pub fn target() -> Target {
         options: TargetOptions {
             features: "+vfp3,+neon".to_string(),
             max_atomic_width: Some(64),
-            has_elf_tls: true,
             // FIXME(jordanrh): use PanicStrategy::Unwind when SEH is
             // implemented for windows/arm in LLVM
             panic_strategy: PanicStrategy::Abort,
index 0d58618a449a901bcf5955a352885c96b3e0156a..5ef652857ad71d63fe3ac26121f1420cd5dbaa65 100644 (file)
@@ -27,6 +27,7 @@ pub fn opts() -> TargetOptions {
         // linking some libraries which require a specific agreement, so it may
         // not ever be possible for us to pass this flag.
         no_default_libraries: false,
+        has_elf_tls: true,
 
         ..base
     }
index 72bbb10323c31abdea7831d27b3499eeef7245be..1c4ccebb488c52a56c26d3ffd210369410b2de7e 100644 (file)
@@ -4,7 +4,6 @@ pub fn target() -> Target {
     let mut base = super::windows_msvc_base::opts();
     base.cpu = "x86-64".to_string();
     base.max_atomic_width = Some(64);
-    base.has_elf_tls = true;
 
     Target {
         llvm_target: "x86_64-pc-windows-msvc".to_string(),
index 27c579ed5bc670e885e3afd6092e3bfe9c1c05c3..06ccc272300d65c12c8d6a476fff78f268eed758 100644 (file)
@@ -4,7 +4,6 @@ pub fn target() -> Target {
     let mut base = super::windows_uwp_msvc_base::opts();
     base.cpu = "x86-64".to_string();
     base.max_atomic_width = Some(64);
-    base.has_elf_tls = true;
 
     Target {
         llvm_target: "x86_64-pc-windows-msvc".to_string(),