From 1648e8323813ee9bd565246e74a50768868dbe2f Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Fri, 9 Apr 2021 14:37:26 +0200 Subject: [PATCH] build: Avoid building all targets It looks like cmake is broken and builds ALL the targets when the parallel option is specified first, lol --- tests/cmake.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/cmake.py b/tests/cmake.py index f199cf2c4..2f6608dc6 100644 --- a/tests/cmake.py +++ b/tests/cmake.py @@ -159,9 +159,10 @@ def cmake(cwd, targets, options=None): # CodeChecker invocations and options are documented here: # https://github.com/Ericsson/codechecker/blob/master/docs/analyzer/user_guide.md - buildcmd = [*cmake, "--build", ".", "--parallel"] + buildcmd = [*cmake, "--build", "."] for target in targets: buildcmd.extend(["--target", target]) + buildcmd.append("--parallel") if "code-checker" in os.environ.get("RUN_ANALYZER", ""): buildcmd = [ "CodeChecker",