sys/asan.sh: Use -fsanitize=... instead of -lasan when linking (#15375) ##build
This commit is contained in:
parent
27e68f0005
commit
6190995828
|
@ -27,8 +27,9 @@ for a in $ASAN ; do
|
|||
export CFLAGS="${CFLAGS} -fsanitize=$a"
|
||||
done
|
||||
if [ "`uname`" != Darwin ]; then
|
||||
export CFLAGS="${CFLAGS} -lasan"
|
||||
export LDFLAGS="-lasan"
|
||||
for a in $ASAN ; do
|
||||
export LDFLAGS="${LDFLAGS} -fsanitize=$a"
|
||||
done
|
||||
fi
|
||||
|
||||
echo 'int main(){return 0;}' > .a.c
|
||||
|
|
Loading…
Reference in New Issue