[compiler-rt] 3ecfe64 - [sanitizers] Redirect stdout and stderr to TASK_LOG
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 13:11:31 PST 2019
Author: Eric Christopher
Date: 2019-12-12T13:11:16-08:00
New Revision: 3ecfe64fe339cd7ac9c3bfa4ecee0f66365e2998
URL: https://github.com/llvm/llvm-project/commit/3ecfe64fe339cd7ac9c3bfa4ecee0f66365e2998
DIFF: https://github.com/llvm/llvm-project/commit/3ecfe64fe339cd7ac9c3bfa4ecee0f66365e2998.diff
LOG: [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
Added:
Modified:
compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
index fdd8de792dbf..4a2febab461f 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
More information about the llvm-commits
mailing list