Skip to content

Commit 5d5039e

Browse files
committed
Disable has_thread_local due to weird issues in some programs
For example, in the following issue the `thread_info` thread-local is not correctly initialized in debug builds: rust3ds/ctru-rs#60
1 parent bc63d5a commit 5d5039e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ pub fn target() -> Target {
3737
pre_link_args,
3838
exe_suffix: ".elf".into(),
3939
no_default_libraries: false,
40-
has_thread_local: true,
40+
// There are some issues in debug builds with this enabled in certain programs.
41+
has_thread_local: false,
4142
..Default::default()
4243
},
4344
}

0 commit comments

Comments
 (0)