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:
https://github.com/Meziu/ctru-rs/issues/60
This commit is contained in:
Mark Drobnak 2022-05-21 17:11:48 -07:00
parent bc63d5a26a
commit 5d5039e1b8
No known key found for this signature in database
GPG Key ID: 47A133F3BF9D03D3

View File

@ -37,7 +37,8 @@ pub fn target() -> Target {
pre_link_args,
exe_suffix: ".elf".into(),
no_default_libraries: false,
has_thread_local: true,
// There are some issues in debug builds with this enabled in certain programs.
has_thread_local: false,
..Default::default()
},
}