From d1bae72e39152dea66d89ae0d22738b6be5a23d1 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Fri, 20 Sep 2013 11:29:44 +0000 Subject: [PATCH] [libsanitizer] Pass an explicit template to mktemp. Running mktemp without a template doesn't work on Darwin. llvm-svn: 191084 --- compiler-rt/lib/sanitizer_common/scripts/check_lint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh index e29af74f6e81..558bcb1feaf4 100755 --- a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh +++ b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh @@ -29,16 +29,16 @@ LSAN_RTL_LINT_FILTER=${COMMON_LINT_FILTER} LSAN_LIT_TEST_LINT_FILTER=${LSAN_RTL_LINT_FILTER},-whitespace/line_length COMMON_RTL_INC_LINT_FILTER=${COMMON_LINT_FILTER},-runtime/int,-runtime/sizeof,-runtime/printf SANITIZER_INCLUDES_LINT_FILTER=${COMMON_LINT_FILTER},-runtime/int - +MKTEMP="mktemp -q /tmp/tmp.XXXXXXXXXX" cd ${LLVM_CHECKOUT} EXITSTATUS=0 -ERROR_LOG=$(mktemp -q) +ERROR_LOG=$(${MKTEMP}) run_lint() { FILTER=$1 shift - TASK_LOG=$(mktemp -q) + TASK_LOG=$(${MKTEMP}) ${CPPLINT} --filter=${FILTER} "$@" 2>$TASK_LOG if [ "$?" != "0" ]; then cat $TASK_LOG | grep -v "Done processing" | grep -v "Total errors found" \