Skip to content

Commit 9ca26f1

Browse files
committed
Enable #[thread_local] for all windows-msvc targets
1 parent 2595d03 commit 9ca26f1

7 files changed

+1
-6
lines changed

compiler/rustc_target/src/spec/aarch64_pc_windows_msvc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use crate::spec::Target;
33
pub fn target() -> Target {
44
let mut base = super::windows_msvc_base::opts();
55
base.max_atomic_width = Some(64);
6-
base.has_elf_tls = true;
76
base.features = "+neon,+fp-armv8".to_string();
87

98
Target {

compiler/rustc_target/src/spec/aarch64_uwp_windows_msvc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use crate::spec::Target;
33
pub fn target() -> Target {
44
let mut base = super::windows_uwp_msvc_base::opts();
55
base.max_atomic_width = Some(64);
6-
base.has_elf_tls = true;
76

87
Target {
98
llvm_target: "aarch64-pc-windows-msvc".to_string(),

compiler/rustc_target/src/spec/i686_uwp_windows_msvc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ pub fn target() -> Target {
44
let mut base = super::windows_uwp_msvc_base::opts();
55
base.cpu = "pentium4".to_string();
66
base.max_atomic_width = Some(64);
7-
base.has_elf_tls = true;
87

98
Target {
109
llvm_target: "i686-pc-windows-msvc".to_string(),

compiler/rustc_target/src/spec/thumbv7a_uwp_windows_msvc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ pub fn target() -> Target {
99
options: TargetOptions {
1010
features: "+vfp3,+neon".to_string(),
1111
max_atomic_width: Some(64),
12-
has_elf_tls: true,
1312
// FIXME(jordanrh): use PanicStrategy::Unwind when SEH is
1413
// implemented for windows/arm in LLVM
1514
panic_strategy: PanicStrategy::Abort,

compiler/rustc_target/src/spec/windows_msvc_base.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub fn opts() -> TargetOptions {
2727
// linking some libraries which require a specific agreement, so it may
2828
// not ever be possible for us to pass this flag.
2929
no_default_libraries: false,
30+
has_elf_tls: true,
3031

3132
..base
3233
}

compiler/rustc_target/src/spec/x86_64_pc_windows_msvc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ pub fn target() -> Target {
44
let mut base = super::windows_msvc_base::opts();
55
base.cpu = "x86-64".to_string();
66
base.max_atomic_width = Some(64);
7-
base.has_elf_tls = true;
87

98
Target {
109
llvm_target: "x86_64-pc-windows-msvc".to_string(),

compiler/rustc_target/src/spec/x86_64_uwp_windows_msvc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ pub fn target() -> Target {
44
let mut base = super::windows_uwp_msvc_base::opts();
55
base.cpu = "x86-64".to_string();
66
base.max_atomic_width = Some(64);
7-
base.has_elf_tls = true;
87

98
Target {
109
llvm_target: "x86_64-pc-windows-msvc".to_string(),

0 commit comments

Comments
 (0)