diff options
| author | Jeremy Soller <jackpot51@gmail.com> | 2016-12-15 08:23:33 -0700 |
|---|---|---|
| committer | Jeremy Soller <jackpot51@gmail.com> | 2016-12-15 16:31:01 -0700 |
| commit | 3e7543a16ec6450b8fe0c3d50bc341b5f143cc54 (patch) | |
| tree | 6045720352a5a4eaa69986b07fe6459e19c26022 /src/libtest | |
| parent | f86e01462781705798adaccbcc3dceb0ecff239b (diff) | |
| download | rust-3e7543a16ec6450b8fe0c3d50bc341b5f143cc54.tar.gz rust-3e7543a16ec6450b8fe0c3d50bc341b5f143cc54.zip | |
WIP: Cross-compilation for Redox target
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index f5546b6aac4..82acbf93488 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -914,6 +914,11 @@ fn use_color(opts: &TestOpts) -> bool { } } +#[cfg(target_os = "redox")] +fn stdout_isatty() -> bool { + // FIXME: Implement isatty on Redox + false +} #[cfg(unix)] fn stdout_isatty() -> bool { unsafe { libc::isatty(libc::STDOUT_FILENO) != 0 } @@ -1103,6 +1108,12 @@ fn get_concurrency() -> usize { } } + #[cfg(target_os = "redox")] + fn num_cpus() -> usize { + // FIXME: Implement num_cpus on Redox + 1 + } + #[cfg(any(target_os = "linux", target_os = "macos", target_os = "ios", |
