Skip to content

Commit 4bb91c7

Browse files
authored
Rollup merge of rust-lang#65898 - hermitcore:rusty-hermit, r=kennytm
add basic HermitCore support within libtest This an extension to rust-lang#65167. The current pull request extend libtest to support HermitCore as target OS.
2 parents e15f1be + cf65200 commit 4bb91c7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/libtest/helpers/concurrency.rs

+6
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ pub fn get_concurrency() -> usize {
5454
1
5555
}
5656

57+
#[cfg(target_os = "hermit")]
58+
fn num_cpus() -> usize {
59+
// FIXME: Implement num_cpus on HermitCore
60+
1
61+
}
62+
5763
#[cfg(any(
5864
all(target_arch = "wasm32", not(target_os = "emscripten")),
5965
all(target_vendor = "fortanix", target_env = "sgx")

src/libtest/helpers/isatty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//! if stdout is a tty.
33
44
#[cfg(any(
5-
target_os = "cloudabi",
5+
target_os = "cloudabi", target_os = "hermit",
66
all(target_arch = "wasm32", not(target_os = "emscripten")),
77
all(target_vendor = "fortanix", target_env = "sgx")
88
))]

0 commit comments

Comments
 (0)