add a target 'sanitize' into Makefile

This commit is contained in:
K.Kosako
2019-05-14 09:29:22 +09:00
parent e8b2da59c4
commit 7ae2b9552b

View File

@ -39,6 +39,12 @@ pkgconfig_DATA = oniguruma.pc
all-test:
cd test; make test
sanitize:
make clean
./configure CC=clang CFLAGS="-O -g -fsanitize=address"
make
make all-test
cov:
make lcov-clear
cd test; make CFLAGS="--coverage" test