summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-11-16 17:41:21 +0000
committerJordan Rose <jordan_rose@apple.com>2012-11-16 17:41:21 +0000
commit8832924acb2c878eb342ccdb69d74ddd9c642c69 (patch)
treefd0914c6048d5218d84c904532264356bec427d1
parent1c6dd74d6f16477436db7754c43b631aad4222a2 (diff)
downloadbcm5719-llvm-8832924acb2c878eb342ccdb69d74ddd9c642c69.tar.gz
bcm5719-llvm-8832924acb2c878eb342ccdb69d74ddd9c642c69.zip
[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
-rwxr-xr-xclang/utils/analyzer/SATestBuild.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py
index 9bb66e4956a..4d68fd87317 100755
--- a/clang/utils/analyzer/SATestBuild.py
+++ b/clang/utils/analyzer/SATestBuild.py
@@ -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,)
OpenPOWER on IntegriCloud