summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/scripts
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-10-16 13:38:23 +0000
committerAlexey Samsonov <samsonov@google.com>2013-10-16 13:38:23 +0000
commit166d6aac8aeafe0d915b7233ba9e6714fcfa2aae (patch)
tree018e74c7f4296d87be3f37a3fcd8cd77c362b572 /lib/sanitizer_common/scripts
parente6f3247020e4710eda6fb210c9fa3c56647b4ca6 (diff)
[Sanitizer] Fix lint checker script on Mac
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/scripts')
-rwxr-xr-xlib/sanitizer_common/scripts/check_lint.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sanitizer_common/scripts/check_lint.sh b/lib/sanitizer_common/scripts/check_lint.sh
index 69a0e19e6..5f1bd4ba4 100755
--- a/lib/sanitizer_common/scripts/check_lint.sh
+++ b/lib/sanitizer_common/scripts/check_lint.sh
@@ -94,10 +94,10 @@ run_lint ${LSAN_LIT_TEST_LINT_FILTER} ${LSAN_RTL}/lit_tests/*/*.cc &
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