]> granicus.if.org Git - onig/commitdiff
add a target 'sanitize' into Makefile
authorK.Kosako <kosako@sofnec.co.jp>
Tue, 14 May 2019 00:29:22 +0000 (09:29 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Tue, 14 May 2019 00:29:22 +0000 (09:29 +0900)
Makefile.am

index 6045eae997a7c35e17ac85d947225ec86b762fe2..a0bbc7bcb8b3f726ae1a85d45e51fecd32efb2b0 100644 (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