From c0f2b10e15255059d6b3fb2171d894e471e9baee Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 26 Mar 2023 14:06:09 +0000 Subject: [PATCH] Skip building crates without tests for regex regex-capi and regex-debug don't have any tests. Nor do they contain any code that is useful to test with cg_clif. --- build_system/tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_system/tests.rs b/build_system/tests.rs index 6f2897f66ac..e2a6fa91eb3 100644 --- a/build_system/tests.rs +++ b/build_system/tests.rs @@ -186,7 +186,9 @@ const fn jit_bin(config: &'static str, source: &'static str, args: &'static str) if runner.is_native { let mut run_cmd = REGEX.test(&runner.target_compiler, &runner.dirs); - run_cmd.args(["--workspace", "--", "-q"]); + // regex-capi and regex-debug don't have any tests. Nor do they contain any code + // that is useful to test with cg_clif. Skip building them to reduce test time. + run_cmd.args(["-p", "regex", "-p", "regex-syntax", "--", "-q"]); spawn_and_wait(run_cmd); } else { eprintln!("Cross-Compiling: Not running tests");