Skip to content

Commit

Permalink
Use static impl for thread_local
Browse files Browse the repository at this point in the history
  • Loading branch information
flaub authored and SchmErik committed Aug 20, 2024
1 parent 54ac017 commit 88b013f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion library/std/src/sys/thread_local/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
// "static" is for single-threaded platforms where a global static is sufficient.

cfg_if::cfg_if! {
if #[cfg(any(all(target_family = "wasm", not(target_feature = "atomics")), target_os = "uefi"))] {
if #[cfg(any(
all(target_family = "wasm", not(target_feature = "atomics")),
target_os = "uefi",
target_os = "zkvm"
))] {
#[doc(hidden)]
mod static_local;
#[doc(hidden)]
Expand Down

0 comments on commit 88b013f

Please sign in to comment.