Skip to content

Commit 0c4b4f2

Browse files
author
Erik Kaneda
authored
Merge pull request #18 from risc0/flaub/1.79-thread-local
rust 1.78: Use static impl for thread_local
2 parents b6c404a + d49b1d1 commit 0c4b4f2

File tree

1 file changed

+5
-1
lines changed
  • library/std/src/sys/thread_local

1 file changed

+5
-1
lines changed

library/std/src/sys/thread_local/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
// "static" is for single-threaded platforms where a global static is sufficient.
77

88
cfg_if::cfg_if! {
9-
if #[cfg(any(all(target_family = "wasm", not(target_feature = "atomics")), target_os = "uefi"))] {
9+
if #[cfg(any(
10+
all(target_family = "wasm", not(target_feature = "atomics")),
11+
target_os = "uefi",
12+
target_os = "zkvm"
13+
))] {
1014
#[doc(hidden)]
1115
mod static_local;
1216
#[doc(hidden)]

0 commit comments

Comments
 (0)