about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIan Chamberlain <ian.h.chamberlain@gmail.com>2023-02-12 16:57:05 -0500
committerIan Chamberlain <ian.h.chamberlain@gmail.com>2023-02-12 16:57:05 -0500
commite723e4359048417c30b3eba4fba7417dddb380a9 (patch)
tree50ab6a8bffe709bbe4e83df99d3812e10182c2c1
parent5b8f284536d00ba649ca968584bedab4820d8527 (diff)
downloadrust-e723e4359048417c30b3eba4fba7417dddb380a9.tar.gz
rust-e723e4359048417c30b3eba4fba7417dddb380a9.zip
Enable #[thread_local] on armv6k-nintendo-3ds
Since libctru 2.1.2 was released
(https://github.com/devkitPro/libctru/releases/tag/v2.1.2) we should be
able to use real #[thread_local] without corruption issues on the 3DS
target.
-rw-r--r--compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs b/compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs
index 40ec6f961f5..23f4a5abf77 100644
--- a/compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs
+++ b/compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs
@@ -29,8 +29,7 @@ pub fn target() -> Target {
             pre_link_args,
             exe_suffix: ".elf".into(),
             no_default_libraries: false,
-            // There are some issues in debug builds with this enabled in certain programs.
-            has_thread_local: false,
+            has_thread_local: true,
             ..Default::default()
         },
     }