diff options
| author | Ian Chamberlain <ian.h.chamberlain@gmail.com> | 2023-02-12 16:57:05 -0500 |
|---|---|---|
| committer | Ian Chamberlain <ian.h.chamberlain@gmail.com> | 2023-02-12 16:57:05 -0500 |
| commit | e723e4359048417c30b3eba4fba7417dddb380a9 (patch) | |
| tree | 50ab6a8bffe709bbe4e83df99d3812e10182c2c1 | |
| parent | 5b8f284536d00ba649ca968584bedab4820d8527 (diff) | |
| download | rust-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.rs | 3 |
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() }, } |
