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.
This commit is contained in:
bjorn3 2023-03-26 14:06:09 +00:00
parent 5b1268d16b
commit c0f2b10e15

View File

@ -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");