summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-12-12 13:09:43 -0800
committerEric Christopher <echristo@gmail.com>2019-12-12 13:11:16 -0800
commit3ecfe64fe339cd7ac9c3bfa4ecee0f66365e2998 (patch)
tree90e8eea7194c9c12aabbcf752148055580bd0675
parent5ad52587ec182f03636649e2cb66a0a4d9ffeab2 (diff)
downloadbcm5719-llvm-3ecfe64fe339cd7ac9c3bfa4ecee0f66365e2998.tar.gz
bcm5719-llvm-3ecfe64fe339cd7ac9c3bfa4ecee0f66365e2998.zip
[sanitizers] Redirect stdout and stderr to TASK_LOG
At some point cpplint.py became very noisy during a build spewing a few hundred lines of "Done processing..." even with SILENT=1 in cmake. This attempts to redirect the stdout of "Done processing" to the task log along with any errors. Tested by this with and without SILENT=1 to check things. Differential Revision: https://reviews.llvm.org/D71402 Reviewed By: eugenis
-rwxr-xr-xcompiler-rt/lib/sanitizer_common/scripts/check_lint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
index fdd8de792db..4a2febab461 100755
--- a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
+++ b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
@@ -55,7 +55,7 @@ run_lint() {
FILTER=$1
shift
TASK_LOG=$(${MKTEMP})
- ${CPPLINT} --filter=${FILTER} "$@" 2>$TASK_LOG
+ ${CPPLINT} --filter=${FILTER} "$@" > $TASK_LOG 2>&1
if [ "$?" != "0" ]; then
cat $TASK_LOG | grep -v "Done processing" | grep -v "Total errors found" \
| grep -v "Skipping input" >> $ERROR_LOG
OpenPOWER on IntegriCloud