os-rust/library/std
quininer e5b76892cc Add emulated TLS support
Currently LLVM uses emutls by default
for some targets (such as android, openbsd),
but rust does not use it, because `has_thread_local` is false.

This commit has some changes to allow users to enable emutls:

1. add `-Zhas-thread-local` flag to specify
    that std uses `#[thread_local]` instead of pthread key.
2. when using emutls, decorate symbol names
    to find thread local symbol correctly.
3. change `-Zforce-emulated-tls` to `-Ztls-model=emulated`
    to explicitly specify whether to generate emutls.
2023-12-07 00:21:32 +08:00
..
benches mv std libs to library/ 2020-07-27 19:51:13 -05:00
src Add emulated TLS support 2023-12-07 00:21:32 +08:00
tests Move RandomState and DefaultHasher into std::hash, but don't export for now 2023-11-02 20:35:20 -04:00
build.rs Remove asmjs from library 2023-10-28 23:10:45 -07:00
Cargo.toml libc: bump dependency to 0.2.150 2023-11-05 18:32:10 +01:00