[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
This commit is contained in:
Jordan Rose 2012-11-15 22:03:53 +00:00
Родитель 61322bc43b
Коммит f55a9e5e70
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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,)