diff options
| author | Sean Cross <sean@xobs.io> | 2023-12-24 15:11:20 +0800 |
|---|---|---|
| committer | Sean Cross <sean@xobs.io> | 2024-01-13 09:13:56 -0800 |
| commit | 007bf7a05a834ace889589e3e73ab6bc91f6f491 (patch) | |
| tree | 4d9712986d2da93609dc4b01d2fef28a5daa4121 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 762e58a218906e2ba403bcc9916b4f4378a6c1de (diff) | |
| download | rust-007bf7a05a834ace889589e3e73ab6bc91f6f491.tar.gz rust-007bf7a05a834ace889589e3e73ab6bc91f6f491.zip | |
std: xous: fix thread_local_key under tests
When running tests, libstd gets implemented as a second library. Due to this fact, the `create()` and `destroy()` functions come from different libraries. To work around this, stash the `destroy_tls()` pointer in the first unused slot in the thread local storage pool. That way even if the destruction comes from a different version of libstd, the correct `DTORS` list will be consulted. Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
