[compiler-rt] r192791 - [Sanitizer] Fix lint checker script on Mac

Alexey Samsonov samsonov at google.com
Wed Oct 16 06:38:23 PDT 2013


Author: samsonov
Date: Wed Oct 16 08:38:23 2013
New Revision: 192791

URL: http://llvm.org/viewvc/llvm-project?rev=192791&view=rev
Log:
[Sanitizer] Fix lint checker script on Mac

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=192791&r1=192790&r2=192791&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh (original)
+++ compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh Wed Oct 16 08:38:23 2013
@@ -94,10 +94,10 @@ run_lint ${LSAN_LIT_TEST_LINT_FILTER} ${
 FILES=${COMMON_RTL}/*.inc
 TMPFILES=""
 for FILE in $FILES; do
-    TMPFILE=$(mktemp -u --tmpdir check_lint.XXXXX).cc
-    cp -f $FILE $TMPFILE
-    run_lint ${COMMON_RTL_INC_LINT_FILTER} $TMPFILE &
-    TMPFILES="$TMPFILES $TMPFILE"
+  TMPFILE="$(${MKTEMP}).$(basename ${FILE}).cc"
+  cp -f $FILE $TMPFILE
+  run_lint ${COMMON_RTL_INC_LINT_FILTER} $TMPFILE &
+  TMPFILES="$TMPFILES $TMPFILE"
 done
 
 wait





More information about the llvm-commits mailing list