mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 00:38:55 +00:00
14 lines
305 B
Bash
Executable File
14 lines
305 B
Bash
Executable File
#!/bin/sh
|
|
export CFLAGS="-fsanitize=address -lasan"
|
|
export LDFLAGS="-lasan"
|
|
echo 'int main(){return 0;}' > .a.c
|
|
[ -z "${CC}" ] && CC=gcc
|
|
${CC} ${CFLAGS} ${LDFLAGS} -o .a.out .a.c
|
|
RET=$?
|
|
rm -f .a.out .a.c
|
|
if [ $RET != 0 ]; then
|
|
echo "Your compiler doesn't support ASAN."
|
|
exit 1
|
|
fi
|
|
exec sys/install.sh $*
|