summaryrefslogtreecommitdiffstats
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
commitf477505d03a956ab9f0acabe3eea3c6018dfbb43 (patch)
treedf84df7bd6d7308cd8e7998f8067f91faa84a797
parentd947a66c13f0e40ebe30561dae04b9f6fbe29839 (diff)
downloadbcm5719-llvm-f477505d03a956ab9f0acabe3eea3c6018dfbb43.tar.gz
bcm5719-llvm-f477505d03a956ab9f0acabe3eea3c6018dfbb43.zip
[analyzer] SATestBuild.py: correctly add -j option for projects using make.
llvm-svn: 168099
-rwxr-xr-xclang/utils/analyzer/SATestBuild.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py
index 94123582225..9bb66e4956a 100755
--- a/clang/utils/analyzer/SATestBuild.py
+++ b/clang/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,)
OpenPOWER on IntegriCloud