Fixed copy/paste for address sanitizer
parent
c65c88a432
commit
f16bd03722
12
cryptest.sh
12
cryptest.sh
|
|
@ -101,21 +101,15 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set to 0 if you don't have Asan
|
# Set to 0 if you don't have Asan
|
||||||
$CXX -x c++ -fsanitize=undefined adhoc.cpp.proto -c -o $TMP/adhoc > /dev/null 2>&1
|
$CXX -x c++ -fsanitize=address adhoc.cpp.proto -c -o $TMP/adhoc > /dev/null 2>&1
|
||||||
if [ "$?" -eq "0" ] && [ "$IS_X86" -ne "0" ]; then
|
if [ "$?" -eq "0" ] && [ "$IS_X86" -ne "0" ]; then
|
||||||
HAVE_ASAN=1
|
HAVE_ASAN=1
|
||||||
else
|
else
|
||||||
HAVE_ASAN=0
|
HAVE_ASAN=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fixup...
|
# Fixups... Cygwin and MinGW both advertise sanitizer support, but the program fails to link.
|
||||||
if [ "$IS_CYGWIN" -ne "0" ] || [ "$IS_MINGW" -ne "0" ]; then
|
if [ "$HAVE_UBSAN" -eq "0" ] || [ "$HAVE_ASAN" -eq "0" ] || [ "$IS_CYGWIN" -ne "0" ] || [ "$IS_MINGW" -ne "0" ]; then
|
||||||
HAVE_UBAN=0
|
|
||||||
HAVE_ASAN=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Final fixups for compilers like GCC on ARM64
|
|
||||||
if [ "$HAVE_UBSAN" -eq "0" ] || [ "$HAVE_ASAN" -eq "0" ]; then
|
|
||||||
HAVE_UBAN=0
|
HAVE_UBAN=0
|
||||||
HAVE_ASAN=0
|
HAVE_ASAN=0
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue