Before, SATestBuild unilaterally added '-j<n>' to every project built with
'make'. Now, we check and see if there's a -j option already specified, which
allows a project to explicitly be marked '-j1'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168603
91177308-0d34-0410-b5e6-
96231b3b80d8
# If using 'make', auto imply a -jX argument
# to speed up analysis. xcodebuild will
# automatically use the maximum number of cores.
- if Command.startswith("make ") or Command == "make":
+ if (Command.startswith("make ") or Command == "make") and \
+ "-j" not in Command:
Command += " -j%d" % Jobs
SBCommand = SBPrefix + Command
if Verbose == 1: