]> granicus.if.org Git - clang/commitdiff
[analyzer] SATestBuild.py: correctly add -j option for projects using make.
authorJordan Rose <jordan_rose@apple.com>
Thu, 15 Nov 2012 22:03:53 +0000 (22:03 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 15 Nov 2012 22:03:53 +0000 (22:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168099 91177308-0d34-0410-b5e6-96231b3b80d8

utils/analyzer/SATestBuild.py

index 94123582225f539941c37e93a6adf9d0aed27ccb..9bb66e4956ad41588dba5533a33c2671355abab4 100755 (executable)
@@ -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,)