diff options
| author | Stefan Lankes <slankes@eonerc.rwth-aachen.de> | 2019-10-28 09:54:24 -0400 |
|---|---|---|
| committer | Stefan Lankes <slankes@eonerc.rwth-aachen.de> | 2019-10-28 09:54:24 -0400 |
| commit | 7cecfab386279ff626da7ee62fc6127b4093b69b (patch) | |
| tree | 37ce8904d1a544c8829424439ba345b62e1988ca | |
| parent | 03a50ae9b87021d4a166c70d2c932f1cb0aa8f28 (diff) | |
| download | rust-7cecfab386279ff626da7ee62fc6127b4093b69b.tar.gz rust-7cecfab386279ff626da7ee62fc6127b4093b69b.zip | |
add basic HermitCore support within libtest
| -rw-r--r-- | src/libtest/helpers/concurrency.rs | 6 | ||||
| -rw-r--r-- | src/libtest/helpers/isatty.rs | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/libtest/helpers/concurrency.rs b/src/libtest/helpers/concurrency.rs index 61651a927c5..4fec01d7525 100644 --- a/src/libtest/helpers/concurrency.rs +++ b/src/libtest/helpers/concurrency.rs @@ -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") diff --git a/src/libtest/helpers/isatty.rs b/src/libtest/helpers/isatty.rs index 6e4954778e6..4955e1fc888 100644 --- a/src/libtest/helpers/isatty.rs +++ b/src/libtest/helpers/isatty.rs @@ -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") ))] |
