Skip to content

Commit

Permalink
Enable #[thread_local] on armv6k-nintendo-3ds
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ian-h-chamberlain committed Feb 12, 2023
1 parent 5b8f284 commit e723e43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
},
}
Expand Down

0 comments on commit e723e43

Please sign in to comment.