Fix asan script (thx zlul)

This commit is contained in:
pancake 2014-11-17 12:27:35 +01:00
parent b57092a7cf
commit bd6f7b27b2

View File

@ -5,8 +5,8 @@ echo 'int main(){return 0;}' > .a.c
[ -z "${CC}" ] && CC=gcc
${CC} ${CFLAGS} ${LDFLAGS} -o .a.out .a.c
RET=$?
rm -rf .a.out .a.c
if [ $? != 0 ]; then
rm -f .a.out .a.c
if [ $RET != 0 ]; then
echo "Your compiler doesn't supports ASAN."
exit 1
fi