about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-02-15 12:24:55 +0530
committerGitHub <noreply@github.com>2023-02-15 12:24:55 +0530
commit587e3dfa80f0b9eb14a74150188b52b05bff337b (patch)
tree0cb2dc856dfb677f2488fa6e3c1094c8bc94e5de
parentc78e3c735aff8aa9bad9cd2dc46b5fdbf4ca1af6 (diff)
parente723e4359048417c30b3eba4fba7417dddb380a9 (diff)
downloadrust-587e3dfa80f0b9eb14a74150188b52b05bff337b.tar.gz
rust-587e3dfa80f0b9eb14a74150188b52b05bff337b.zip
Rollup merge of #107968 - ian-h-chamberlain:feature/3ds-enable-thread-local, r=Nilstrieb
Enable `#[thread_local]` on armv6k-nintendo-3ds

Since [libctru 2.1.2](https://github.com/devkitPro/libctru/releases/tag/v2.1.2)  was released we should now be able to use real `#[thread_local]` without corruption issues on the 3DS target.

CC `@Meziu` `@AzureMarker` `@Techie-Pi`
https://github.com/rust3ds/ctru-rs/issues/91#issuecomment-1426821450
-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()
         },
     }