diff options
| author | Mark Drobnak <mark.drobnak@gmail.com> | 2022-05-21 17:11:48 -0700 |
|---|---|---|
| committer | Mark Drobnak <mark.drobnak@gmail.com> | 2022-06-13 20:45:25 -0700 |
| commit | 5d5039e1b80862b4561a5199d57053f1ef027035 (patch) | |
| tree | 7696d8b750ea1c8fa85913394df147a35f5fe390 | |
| parent | bc63d5a26a65752fb105957d3235cc9c8cb0767f (diff) | |
| download | rust-5d5039e1b80862b4561a5199d57053f1ef027035.tar.gz rust-5d5039e1b80862b4561a5199d57053f1ef027035.zip | |
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
| -rw-r--r-- | compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs b/compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs index ffcd1a3f4df..67df73fa935 100644 --- a/compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs +++ b/compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs @@ -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() }, } |
