Skip to content

Commit

Permalink
Rollup merge of rust-lang#65898 - hermitcore:rusty-hermit, r=kennytm
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tmandry authored Oct 29, 2019
2 parents e15f1be + cf65200 commit 4bb91c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/libtest/helpers/concurrency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ pub fn get_concurrency() -> usize {
1
}

#[cfg(target_os = "hermit")]
fn num_cpus() -> usize {
// FIXME: Implement num_cpus on HermitCore
1
}

#[cfg(any(
all(target_arch = "wasm32", not(target_os = "emscripten")),
all(target_vendor = "fortanix", target_env = "sgx")
Expand Down
2 changes: 1 addition & 1 deletion src/libtest/helpers/isatty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! if stdout is a tty.
#[cfg(any(
target_os = "cloudabi",
target_os = "cloudabi", target_os = "hermit",
all(target_arch = "wasm32", not(target_os = "emscripten")),
all(target_vendor = "fortanix", target_env = "sgx")
))]
Expand Down

0 comments on commit 4bb91c7

Please sign in to comment.