Allow CLANG env variable to override "clang" command in TestRunner.sh

llvm-svn: 54005
This commit is contained in:
Daniel Dunbar 2008-07-25 01:05:44 +00:00
parent c90a11256e
commit dd49a04d18
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ grep -q 'RUN:' $FILENAME || (
)
# Run under valgrind if the VG environment variable has been set.
CLANG="clang"
CLANG=$CLANG
if [ "$CLANG" == "" ]; then
CLANG="clang"
fi
if [ -n "$VG" ]; then
rm -f $OUTPUT.vg.*
CLANG="valgrind --leak-check=full --quiet --log-file=$OUTPUT.vg.%p $CLANG"