Skip to content

Commit

Permalink
Merge pull request #17 from risc0/flaub/thread-local-static
Browse files Browse the repository at this point in the history
rust 1.79: Use static impl for thread_local
  • Loading branch information
SchmErik authored Aug 20, 2024
2 parents 563dcb1 + d32671c commit 4937f39
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 @@ -6,7 +6,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 4937f39

Please sign in to comment.