summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/scripts
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2013-09-20 11:29:44 +0000
committerAlexander Potapenko <glider@google.com>2013-09-20 11:29:44 +0000
commitd1bae72e39152dea66d89ae0d22738b6be5a23d1 (patch)
treef360acd32460c60c1b34fba39fc15918ed239719 /compiler-rt/lib/sanitizer_common/scripts
parentbff7e64a3fadc08532ee2b5e00a37fe145f59896 (diff)
downloadbcm5719-llvm-d1bae72e39152dea66d89ae0d22738b6be5a23d1.tar.gz
bcm5719-llvm-d1bae72e39152dea66d89ae0d22738b6be5a23d1.zip
[libsanitizer] Pass an explicit template to mktemp. Running mktemp without a template doesn't work on Darwin.
llvm-svn: 191084
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/scripts')
-rwxr-xr-xcompiler-rt/lib/sanitizer_common/scripts/check_lint.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
index e29af74f6e8..558bcb1feaf 100755
--- a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
+++ b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
@@ -29,16 +29,16 @@ LSAN_RTL_LINT_FILTER=${COMMON_LINT_FILTER}
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" \
OpenPOWER on IntegriCloud