Skip to content

Commit

Permalink
build: Avoid building all targets (#512)
Browse files Browse the repository at this point in the history
It looks like cmake is broken and builds ALL the targets when the parallel option is specified first, lol
  • Loading branch information
Swatinem authored Apr 9, 2021
1 parent 03ebec7 commit 1198758
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1198758

Please sign in to comment.