summaryrefslogtreecommitdiffstats
path: root/compiler-rt/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
commitfa103da8676d87bcb59432c68bb1f8686f9cd47b (patch)
tree2ffdb35d159ac546b8a5e5ceb18433f16133fe6f /compiler-rt/lib/sanitizer_common/scripts
parent3e382972d9c51541fc9e14b5b961e2c31c246002 (diff)
downloadbcm5719-llvm-fa103da8676d87bcb59432c68bb1f8686f9cd47b.tar.gz
bcm5719-llvm-fa103da8676d87bcb59432c68bb1f8686f9cd47b.zip
[Sanitizer] Fix lint checker script on Mac
llvm-svn: 192791
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/scripts')
-rwxr-xr-xcompiler-rt/lib/sanitizer_common/scripts/check_lint.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
index 69a0e19e612..5f1bd4ba431 100755
--- a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
+++ b/compiler-rt/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
OpenPOWER on IntegriCloud