[analyzer] SATestBuild.py: fix broken string concatenation

This has been broken for a while, but the branch was never being taken.
(We were trying to do 'str + floatVal'; now we do 'str % intVal' and use
the '%d' format.)

llvm-svn: 168174
This commit is contained in:
Jordan Rose 2012-11-16 17:41:21 +00:00
parent 1c6dd74d6f
commit 8832924acb
1 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ if not Clang:
sys.exit(-1)
# Number of jobs.
Jobs = math.ceil(detectCPUs() * 0.75)
Jobs = int(math.ceil(detectCPUs() * 0.75))
# Project map stores info about all the "registered" projects.
ProjectMapFile = "projectMap.csv"
@ -214,7 +214,7 @@ def runScanBuild(Dir, SBOutputDir, PBuildLogFile):
# to speed up analysis. xcodebuild will
# automatically use the maximum number of cores.
if Command.startswith("make ") or Command == "make":
Command += " -j" + Jobs
Command += " -j%d" % Jobs
SBCommand = SBPrefix + Command
if Verbose == 1:
print " Executing: %s" % (SBCommand,)