summaryrefslogtreecommitdiffstats
path: root/clang/utils/analyzer
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-09-06 16:12:41 +0000
committerJordan Rose <jordan_rose@apple.com>2013-09-06 16:12:41 +0000
commit7bd9186cdd35ed39efea6c53af3244d687418834 (patch)
treebaf7d387db5fd31e1556d3d52767554b2ac51f91 /clang/utils/analyzer
parent4e06e6e8c36c01f3e3f1caf24a8a5b70a5c3fdc4 (diff)
downloadbcm5719-llvm-7bd9186cdd35ed39efea6c53af3244d687418834.tar.gz
bcm5719-llvm-7bd9186cdd35ed39efea6c53af3244d687418834.zip
[analyzer] SATestBuild: strip trailing newlines from command file.
When running a make-based command, SATestBuild tries to append a -jN flag with an appropriate N to run the build in parallel. However, it failed to take into account that each line read includes a trailing newline (unless it is the last line of a file without a trailing newline), which resulted in the "-jN" appearing on a line on its own. llvm-svn: 190164
Diffstat (limited to 'clang/utils/analyzer')
-rwxr-xr-xclang/utils/analyzer/SATestBuild.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py
index eb7796431a1..51bc6e25937 100755
--- a/clang/utils/analyzer/SATestBuild.py
+++ b/clang/utils/analyzer/SATestBuild.py
@@ -215,6 +215,7 @@ def runScanBuild(Dir, SBOutputDir, PBuildLogFile):
SBCommandFile = open(BuildScriptPath, "r")
SBPrefix = "scan-build " + SBOptions + " "
for Command in SBCommandFile:
+ Command = Command.strip()
# If using 'make', auto imply a -jX argument
# to speed up analysis. xcodebuild will
# automatically use the maximum number of cores.
OpenPOWER on IntegriCloud