diff options
author | Daniel Veillard <veillard@redhat.com> | 2016-05-04 12:33:32 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2016-05-04 12:33:32 +0800 |
commit | 9b4b8cb3e2ff102376f27e3658fad931a31e952a (patch) | |
tree | 2573137eba9ae830bd9a30439d2648511d889a0d | |
parent | b8e0fa3489b344d9cbd1165687e7dc5b15cc3727 (diff) | |
download | libxml2-9b4b8cb3e2ff102376f27e3658fad931a31e952a.tar.gz |
Add a make rule to rebuild for ASAN
-rw-r--r-- | Makefile.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index cbee9970..9f988b06 100644 --- a/Makefile.am +++ b/Makefile.am @@ -216,6 +216,10 @@ check-valgrind valgrind: all @echo '## Go get a cup of coffee it is gonna take a while ...' $(MAKE) CHECKER='valgrind -q' runtests +asan: + @echo '## rebuilding for ASAN' + ./configure CFLAGS="-fsanitize=address,undefined -Wformat -Werror=format-security -Werror=array-bounds -g" CXXFLAGS="-fsanitize=address,undefined -Wformat -Werror=format-security -Werror=array-bounds -g" LDFLAGS="-fsanitize=address,undefined" CC="clang" CXX="clang++" --disable-shared ; OptimOff ; $(MAKE) clean ; $(MAKE) + testall : tests SVGtests SAXtests tests: XMLtests XMLenttests NStests IDtests Errtests APItests $(READER_TEST) $(TEST_SAX) $(TEST_PUSH) $(TEST_HTML) $(TEST_PHTML) $(TEST_VALID) URItests $(TEST_PATTERN) $(TEST_XPATH) $(TEST_XPTR) $(TEST_XINCLUDE) $(TEST_C14N) $(TEST_DEBUG) $(TEST_CATALOG) $(TEST_REGEXPS) $(TEST_SCHEMAS) $(TEST_SCHEMATRON) $(TEST_THREADS) Timingtests $(TEST_VTIME) $(PYTHON_TESTS) $(TEST_MODULES) |