Skip to content

Commit 587e3df

Browse files
authored
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` rust3ds/ctru-rs#91 (comment)
2 parents c78e3c7 + e723e43 commit 587e3df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ pub fn target() -> Target {
2929
pre_link_args,
3030
exe_suffix: ".elf".into(),
3131
no_default_libraries: false,
32-
// There are some issues in debug builds with this enabled in certain programs.
33-
has_thread_local: false,
32+
has_thread_local: true,
3433
..Default::default()
3534
},
3635
}

0 commit comments

Comments
 (0)