We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82cb207 commit 2ff1f45Copy full SHA for 2ff1f45
src/libtest/lib.rs
@@ -1198,6 +1198,12 @@ fn get_concurrency() -> usize {
1198
1
1199
}
1200
1201
+ #[cfg(target_os = "redox")]
1202
+ fn num_cpus() -> usize {
1203
+ // FIXME: Implement num_cpus on Redox
1204
+ 1
1205
+ }
1206
+
1207
#[cfg(any(
1208
all(target_arch = "wasm32", not(target_os = "emscripten")),
1209
all(target_vendor = "fortanix", target_env = "sgx")
@@ -1215,7 +1221,6 @@ fn get_concurrency() -> usize {
1215
1221
target_os = "linux",
1216
1222
target_os = "macos",
1217
1223
target_os = "solaris",
1218
- target_os = "redox",
1219
1224
))]
1220
1225
fn num_cpus() -> usize {
1226
unsafe { libc::sysconf(libc::_SC_NPROCESSORS_ONLN) as usize }
0 commit comments