Skip to content

Commit b529760

Browse files
committed
CMake projects: run tests in parallel for native builds
This significantly speeds up the sail-riscv tests
1 parent 6119af8 commit b529760

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pycheribuild/projects/cmake_project.py

+2
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ def run_tests(self) -> None:
325325
shutil.which(os.getenv("CTEST_COMMAND", "ctest")) or "ctest",
326326
"-V" if self.config.verbose else "--progress",
327327
"--output-on-failure",
328+
"--parallel",
329+
self.config.make_jobs,
328330
cwd=self.build_dir,
329331
env=self.ctest_environment,
330332
)

0 commit comments

Comments
 (0)