add stub for retrieving number of CPUs

This commit is contained in:
Sebastian Humenda
2018-03-10 15:01:51 +01:00
parent 933417549c
commit 9fd941e847
2 changed files with 7 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ pub fn opts() -> TargetOptions {
has_elf_tls: false,
exe_allocation_crate: None,
panic_strategy: PanicStrategy::Abort,
linker: "ld".to_string(),
linker: Some("ld".to_string()),
pre_link_args: args,
target_family: Some("unix".to_string()),
.. Default::default()

View File

@@ -1294,6 +1294,12 @@ fn get_concurrency() -> usize {
// FIXME: implement
1
}
#[cfg(target_os = "l4re")]
fn num_cpus() -> usize {
// FIXME: implement
1
}
}
pub fn filter_tests(opts: &TestOpts, tests: Vec<TestDescAndFn>) -> Vec<TestDescAndFn> {