aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-11-26 19:59:57 +0000
committerJordan Rose <jordan_rose@apple.com>2012-11-26 19:59:57 +0000
commit7bd51ea64fd06b9a243faaacb0b15c168afe47a6 (patch)
treeaf2159e5a3498c366ae02188e7c31305d78a6359 /utils
parentdac6cd533d90fa1f75e66f83f7d5ebc12e34bfb7 (diff)
[analyzer] SATestBuild.py: allow make builds to disable parallelization
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
Diffstat (limited to 'utils')
-rwxr-xr-xutils/analyzer/SATestBuild.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/analyzer/SATestBuild.py b/utils/analyzer/SATestBuild.py
index 4d68fd8731..36199cb281 100755
--- a/utils/analyzer/SATestBuild.py
+++ b/utils/analyzer/SATestBuild.py
@@ -213,7 +213,8 @@ def runScanBuild(Dir, SBOutputDir, PBuildLogFile):
# 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: