Skip to content

Commit 9fd941e

Browse files
committed
add stub for retrieving number of CPUs
1 parent 9334175 commit 9fd941e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/librustc_back/target/l4re_base.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn opts() -> TargetOptions {
3434
has_elf_tls: false,
3535
exe_allocation_crate: None,
3636
panic_strategy: PanicStrategy::Abort,
37-
linker: "ld".to_string(),
37+
linker: Some("ld".to_string()),
3838
pre_link_args: args,
3939
target_family: Some("unix".to_string()),
4040
.. Default::default()

src/libtest/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,12 @@ fn get_concurrency() -> usize {
12941294
// FIXME: implement
12951295
1
12961296
}
1297+
1298+
#[cfg(target_os = "l4re")]
1299+
fn num_cpus() -> usize {
1300+
// FIXME: implement
1301+
1
1302+
}
12971303
}
12981304

12991305
pub fn filter_tests(opts: &TestOpts, tests: Vec<TestDescAndFn>) -> Vec<TestDescAndFn> {

0 commit comments

Comments
 (0)