Fix which benchmarks are compile
This prevents errors with redefinitions, the lzy way
This commit is contained in:
parent
f9b0bf0b5f
commit
9a08103872
@ -6,10 +6,10 @@ use std::{env, fs};
|
||||
|
||||
const BENCHMARKS: &[&str] = &[
|
||||
"src/ud/libud.c",
|
||||
// "src/wikisort/libwikisort.c", Error: undefined reference to rand_beebs
|
||||
"src/wikisort/libwikisort.c",
|
||||
"src/nbody/nbody.c",
|
||||
"src/edn/libedn.c",
|
||||
"src/st/libst.c",
|
||||
// "src/st/libst.c", Collides with matmult-int
|
||||
"src/aha-mont64/mont64.c",
|
||||
"src/matmult-int/matmult-int.c",
|
||||
"src/slre/libslre.c",
|
||||
@ -20,7 +20,7 @@ const BENCHMARKS: &[&str] = &[
|
||||
"src/minver/libminver.c",
|
||||
"src/statemate/libstatemate.c",
|
||||
"src/crc32/crc_32.c",
|
||||
"src/picojpeg/libpicojpeg.c",
|
||||
// "src/picojpeg/libpicojpeg.c", Contains multiple source fails, maybe a todo if relevant
|
||||
"src/cubic/basicmath_small.c",
|
||||
"src/md5sum/md5.c",
|
||||
"src/qrduino/qrtest.c",
|
||||
@ -49,13 +49,13 @@ fn main() {
|
||||
let path = embench_dir.join(benchmark_file);
|
||||
let dir = path.parent().unwrap();
|
||||
let benchmark_name = dir.file_name().unwrap().to_string_lossy().replace("-", "_");
|
||||
println!("cargo:warning={path:?}");
|
||||
|
||||
let mut build = cc::Build::new();
|
||||
build
|
||||
.include(embench_dir.join("support"))
|
||||
.file(embench_dir.join("support/beebsc.c"))
|
||||
.file(&path)
|
||||
.warnings(false)
|
||||
// Just use some roughly accurate value, it just influences how long each benchmark runs
|
||||
.define("CPU_MHZ", "2700");
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
use client::program;
|
||||
|
||||
fn main() {
|
||||
program::<client::embench_sys::picojpeg>();
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
use client::program;
|
||||
|
||||
fn main() {
|
||||
program::<client::embench_sys::st>();
|
||||
}
|
5
client/src/bin/client_wikisort.rs
Normal file
5
client/src/bin/client_wikisort.rs
Normal file
@ -0,0 +1,5 @@
|
||||
use client::program;
|
||||
|
||||
fn main() {
|
||||
program::<client::embench_sys::wikisort>();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user