[libxml2] Add a make rule to rebuild for ASAN



commit 9b4b8cb3e2ff102376f27e3658fad931a31e952a
Author: Daniel Veillard <veillard redhat com>
Date:   Wed May 4 12:33:32 2016 +0800

    Add a make rule to rebuild for ASAN

 Makefile.am |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index cbee997..9f988b0 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]