aboutsummaryrefslogtreecommitdiff
path: root/utils
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
commit58782bee56bf5e6ab42e6695af9ae5befe1fd479 (patch)
tree858474b21a9fab32e62e50bdca3cc4867534d771 /utils
parent9ecf6428acd01f16202f5f1dcb00eab3635e181a (diff)
[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.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168174 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/analyzer/SATestBuild.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/analyzer/SATestBuild.py b/utils/analyzer/SATestBuild.py
index 9bb66e4956..4d68fd8731 100755
--- a/utils/analyzer/SATestBuild.py
+++ b/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,)