Skip to content

Commit 82cb207

Browse files
authored
fix num_cpus
1 parent 40cb69d commit 82cb207

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/libtest/lib.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1192,12 +1192,6 @@ fn get_concurrency() -> usize {
11921192
}
11931193
}
11941194

1195-
#[cfg(target_os = "redox")]
1196-
fn num_cpus() -> usize {
1197-
// FIXME: Implement num_cpus on Redox
1198-
1
1199-
}
1200-
12011195
#[cfg(target_os = "vxworks")]
12021196
fn num_cpus() -> usize {
12031197
// FIXME: Implement num_cpus on vxWorks
@@ -1220,7 +1214,8 @@ fn get_concurrency() -> usize {
12201214
target_os = "ios",
12211215
target_os = "linux",
12221216
target_os = "macos",
1223-
target_os = "solaris"
1217+
target_os = "solaris",
1218+
target_os = "redox",
12241219
))]
12251220
fn num_cpus() -> usize {
12261221
unsafe { libc::sysconf(libc::_SC_NPROCESSORS_ONLN) as usize }

0 commit comments

Comments
 (0)