diff options
author | Alexander Potapenko <glider@google.com> | 2013-09-20 11:29:44 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2013-09-20 11:29:44 +0000 |
commit | e8eeda0775683afc4e0dbd4c3be19fce5b3d0d4a (patch) | |
tree | d91300be9d0980b5d1558cdff03e9efb63ee18a5 /lib/sanitizer_common/scripts | |
parent | b812253202f2db9d60a543b22226064d1ed20279 (diff) |
[libsanitizer] Pass an explicit template to mktemp. Running mktemp without a template doesn't work on Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/scripts')
-rwxr-xr-x | lib/sanitizer_common/scripts/check_lint.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sanitizer_common/scripts/check_lint.sh b/lib/sanitizer_common/scripts/check_lint.sh index e29af74f6..558bcb1fe 100755 --- a/lib/sanitizer_common/scripts/check_lint.sh +++ b/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" \ |