summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-02-19 10:34:34 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-02-19 10:34:34 -0800
commit0fdb06f275aeb67331fd0984d89227ecadeeb26e (patch)
treefdcaf6282122fc3e021b6faf475479af5f1a6277 /Makefile
parentaad831e87c92530fe54b7dcdda593c53ccc3f0b6 (diff)
Added 'Asan' build type.
`make asan` will link against ASan; the resulting executable will do checks for memory access issues. Thanks @JordanMilne for the suggestion.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 924492f..e6a2314 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ VERSION?=$(SPECVERSION)
RELEASE?=CommonMark-$(VERSION)
INSTALL_PREFIX?=/usr/local
-.PHONY: all cmake_build spec leakcheck clean fuzztest dingus upload test update-site upload-site debug mingw archive bench astyle update-spec
+.PHONY: all cmake_build spec leakcheck clean fuzztest dingus upload test update-site upload-site debug asan mingw archive bench astyle update-spec
all: cmake_build man/man3/cmark.3
@@ -47,6 +47,12 @@ debug:
cmake .. -DCMAKE_BUILD_TYPE=Debug; \
make
+asan:
+ mkdir -p $(BUILDDIR); \
+ cd $(BUILDDIR); \
+ cmake .. -DCMAKE_BUILD_TYPE=Asan; \
+ make
+
prof:
mkdir -p $(BUILDDIR); \
cd $(BUILDDIR); \