[compiler-rt] r191084 - [libsanitizer] Pass an explicit template to mktemp. Running mktemp without a template doesn't work on Darwin.
Alexander Potapenko
glider at google.com
Fri Sep 20 04:29:45 PDT 2013
Author: glider
Date: Fri Sep 20 06:29:44 2013
New Revision: 191084
URL: http://llvm.org/viewvc/llvm-project?rev=191084&view=rev
Log:
[libsanitizer] Pass an explicit template to mktemp. Running mktemp without a template doesn't work on Darwin.
Modified:
compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh
Modified: compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh?rev=191084&r1=191083&r2=191084&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh (original)
+++ compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh Fri Sep 20 06:29:44 2013
@@ -29,16 +29,16 @@ LSAN_RTL_LINT_FILTER=${COMMON_LINT_FILTE
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" \
More information about the llvm-commits
mailing list