Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up incremental build #1682

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
7 changes: 4 additions & 3 deletions circuits/tests/riscv_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ macro_rules! test_elf {
($test_name:ident, $file_name:tt) => {
#[test]
fn $test_name() -> Result<()> {
let elf = fs::read(concat!("riscv-testdata/testdata/", $file_name))
.expect("Should have been able to read the file");
run_test(&elf)
run_test(include_bytes!(concat!(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably adds compile time. rust-lang/rust#65818

"../../riscv-testdata/testdata/",
$file_name
)))
}
};
}
Expand Down
Loading