[compiler-rt] r370277 - [sanitizer] Simplify COMPILER_RT setup in lint script
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 28 16:52:21 PDT 2019
Author: vitalybuka
Date: Wed Aug 28 16:52:21 2019
New Revision: 370277
URL: http://llvm.org/viewvc/llvm-project?rev=370277&view=rev
Log:
[sanitizer] Simplify COMPILER_RT setup in lint script
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=370277&r1=370276&r2=370277&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh (original)
+++ compiler-rt/trunk/lib/sanitizer_common/scripts/check_lint.sh Wed Aug 28 16:52:21 2019
@@ -2,9 +2,8 @@
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
-# Guess path to LLVM_CHECKOUT if not provided
-if [ "${LLVM_CHECKOUT}" = "" ]; then
- LLVM_CHECKOUT="${SCRIPT_DIR}/../../../../../"
+if [ "${COMPILER_RT}" = "" ]; then
+ COMPILER_RT=$(readlink -f $SCRIPT_DIR/../../..)
fi
# python tools setup
@@ -40,8 +39,6 @@ cleanup() {
}
trap cleanup EXIT
-cd ${LLVM_CHECKOUT}
-
EXITSTATUS=0
ERROR_LOG=$(${MKTEMP})
@@ -60,9 +57,6 @@ run_lint() {
${LITLINT} "$@" 2>>$ERROR_LOG
}
-if [ "${COMPILER_RT}" = "" ]; then
- COMPILER_RT=projects/compiler-rt
-fi
LIT_TESTS=${COMPILER_RT}/test
# Headers
SANITIZER_INCLUDES=${COMPILER_RT}/include/sanitizer
More information about the llvm-commits
mailing list