We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03a50ae commit 7cecfabCopy full SHA for 7cecfab
src/libtest/helpers/concurrency.rs
@@ -54,6 +54,12 @@ pub fn get_concurrency() -> usize {
54
1
55
}
56
57
+ #[cfg(target_os = "hermit")]
58
+ fn num_cpus() -> usize {
59
+ // FIXME: Implement num_cpus on HermitCore
60
+ 1
61
+ }
62
+
63
#[cfg(any(
64
all(target_arch = "wasm32", not(target_os = "emscripten")),
65
all(target_vendor = "fortanix", target_env = "sgx")
src/libtest/helpers/isatty.rs
@@ -2,7 +2,7 @@
2
//! if stdout is a tty.
3
4
5
- target_os = "cloudabi",
+ target_os = "cloudabi", target_os = "hermit",
6
7
8
))]
0 commit comments