os-rust/compiler/rustc_llvm
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
..
llvm-wrapper Add emulated TLS support 2023-12-07 00:21:32 +08:00
src Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
build.rs Rollup merge of #114224 - inferiorhumanorgans:solaris-llvm-wrapper, r=cuviper 2023-11-13 21:28:54 +01:00
Cargo.toml Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00