summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-01-16 10:09:56 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-01-16 10:09:56 +0000
commite0009356ba837d73df584981d0d209cbdbe020f2 (patch)
tree25a0e4a255ff12fe73f29e1a45cd2140bb398703
parent6cea6473b31c26abeac43e4dc849e410176533a7 (diff)
downloadbcm5719-llvm-e0009356ba837d73df584981d0d209cbdbe020f2.tar.gz
bcm5719-llvm-e0009356ba837d73df584981d0d209cbdbe020f2.zip
[sanitizer] Cleanup linter temporary files.
llvm-svn: 226266
-rwxr-xr-xcompiler-rt/lib/sanitizer_common/scripts/check_lint.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
index 267273d9779..dc7bb145b1e 100755
--- a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
+++ b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
@@ -32,7 +32,14 @@ LSAN_LIT_TEST_LINT_FILTER=${LSAN_RTL_LINT_FILTER},-whitespace/line_length
DFSAN_RTL_LINT_FILTER=${COMMON_LINT_FILTER},-runtime/int,-runtime/printf,-runtime/references,-readability/function
COMMON_RTL_INC_LINT_FILTER=${COMMON_LINT_FILTER},-runtime/int,-runtime/sizeof,-runtime/printf,-readability/fn_size
SANITIZER_INCLUDES_LINT_FILTER=${COMMON_LINT_FILTER},-runtime/int
-MKTEMP="mktemp -q /tmp/tmp.XXXXXXXXXX"
+
+MKTEMP_DIR=$(mktemp -qd /tmp/check_lint.XXXXXXXXXX)
+MKTEMP="mktemp -q ${MKTEMP_DIR}/tmp.XXXXXXXXXX"
+function cleanup {
+ rm -rf $MKTEMP_DIR
+}
+trap cleanup EXIT
+
cd ${LLVM_CHECKOUT}
EXITSTATUS=0
OpenPOWER on IntegriCloud