rust/library/std/src/sys
bors f98598c6cd Auto merge of #108089 - Zoxc:windows-tls, r=bjorn3
Support TLS access into dylibs on Windows

This allows access to `#[thread_local]`  in upstream dylibs on Windows by introducing a MIR shim to return the address of the thread local. Accesses that go into an upstream dylib will call the MIR shim to get the address of it.

`convert_tls_rvalues` is introduced in `rustc_codegen_ssa` which rewrites MIR TLS accesses to dummy calls which are replaced with calls to the MIR shims when the dummy calls are lowered to backend calls.

A new `dll_tls_export` target option enables this behavior with a `false` value which is set for Windows platforms.

This fixes https://github.com/rust-lang/rust/issues/84933.
2023-03-29 16:20:37 +00:00
..
common Use #[inline] on Windows for thread local access 2023-03-29 08:55:25 +02:00
hermit fix typo in the creation of OpenOption 2023-03-19 22:59:48 +01:00
itron Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00
sgx Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
solid Rollup merge of #106372 - joboet:solid_id_parking, r=m-ou-se 2023-02-16 11:40:19 +05:30
unix Auto merge of #108792 - Amanieu:ohos, r=petrochenkov 2023-03-29 07:16:16 +00:00
unsupported Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
wasi Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
wasm std: use a more efficient Once on platforms without threads 2022-12-14 13:55:30 +01:00
windows Rollup merge of #96391 - ChrisDenton:command-non-verbatim, r=joshtriplett 2023-03-21 19:00:10 +01:00
mod.rs review 2023-03-17 21:00:10 -07:00