Skip to content

Commit

Permalink
add stub for retrieving number of CPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
humenda committed Mar 10, 2018
1 parent 9334175 commit 9fd941e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_back/target/l4re_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 6 additions & 0 deletions src/libtest/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 9fd941e

Please sign in to comment.