Skip to content

Commit c0f2b10

Browse files
committed
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.
1 parent 5b1268d commit c0f2b10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_system/tests.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
186186

187187
if runner.is_native {
188188
let mut run_cmd = REGEX.test(&runner.target_compiler, &runner.dirs);
189-
run_cmd.args(["--workspace", "--", "-q"]);
189+
// regex-capi and regex-debug don't have any tests. Nor do they contain any code
190+
// that is useful to test with cg_clif. Skip building them to reduce test time.
191+
run_cmd.args(["-p", "regex", "-p", "regex-syntax", "--", "-q"]);
190192
spawn_and_wait(run_cmd);
191193
} else {
192194
eprintln!("Cross-Compiling: Not running tests");

0 commit comments

Comments
 (0)