[analyzer] SATestBuild.py: correctly add -j option for projects using make.
llvm-svn: 168099
This commit is contained in:
parent
d947a66c13
commit
f477505d03
|
@ -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,)
|
||||
|
|
Loading…
Reference in New Issue