mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 17:22:19 +00:00
std: Adjust cfgs again for TLS on WASI This commit adjusts the changes made in rust-lang/rust#159733. A wasi-libc bug was discovered in rust-lang/rust#160828 which is present in certain situations which means that the changes in rust-lang/rust#159733 expose this bug. The purpose of this PR is to get wasip1/wasip2 targets fixed again while preserving a working implementation for wasip3. This upstream bug is already fixed in wasi-libc meaning that this PR won't be necessary once wasi-sdk-34 is published and used in rust-lang/rust. Until that time, however, this effectively reverts rust-lang/rust#159733 for wasip1/wasip2. The wasip3 target is Tier 3 still and requires wasi-sdk-34 anyway which is why that's left unchanged. Closes rust-lang/rust#160828