mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
[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'. llvm-svn: 168603
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user