Skip to content

Commit

Permalink
Fix qjs when using asan ##build
Browse files Browse the repository at this point in the history
  • Loading branch information
satk0 authored and trufae committed Oct 29, 2024
1 parent 189610e commit ef57b08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/sanitize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ for a in $SANITIZE ; do
export CFLAGS="${CFLAGS} -fsanitize=$a"
if [ "$a" = leak ]; then
HAVE_LEAKS=0
elif [ "$a" = address ]; then
export CFLAGS="${CFLAGS} -D__ASAN__=1"
fi
done
if [ "${HAVE_LEAKS}" = 0 ]; then
Expand Down

0 comments on commit ef57b08

Please sign in to comment.