aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-11-15 22:03:53 +0000
committerJordan Rose <jordan_rose@apple.com>2012-11-15 22:03:53 +0000
commitf55a9e5e70aa08a5a4d3f3ad79487b3ad1d19b46 (patch)
tree2812e9f86c7a76e4247ff6275a3726facfd14ddd /utils
parent61322bc43b016d7dd6b19282adec8fdb27905840 (diff)
downloadclang-f55a9e5e70aa08a5a4d3f3ad79487b3ad1d19b46.tar.gz
[analyzer] SATestBuild.py: correctly add -j option for projects using make.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168099 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/analyzer/SATestBuild.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/analyzer/SATestBuild.py b/utils/analyzer/SATestBuild.py
index 9412358222..9bb66e4956 100755
--- a/utils/analyzer/SATestBuild.py
+++ b/utils/analyzer/SATestBuild.py
@@ -213,8 +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 "):
- Command += "-j" + Jobs
+ if Command.startswith("make ") or Command == "make":
+ Command += " -j" + Jobs
SBCommand = SBPrefix + Command
if Verbose == 1:
print " Executing: %s" % (SBCommand,)