]> gitweb.factorcode.org Git - factor.git/blobdiff - GNUmakefile
basis/extra: builder fixes for recent cleanups
[factor.git] / GNUmakefile
index 4b24d68d199c466d6d7e1639b299810356c5fac1..bad078a8859eb2b0265320d2c2b60acd0a948609 100644 (file)
@@ -19,6 +19,7 @@ ifdef CONFIG
        include $(CONFIG)
 
        CFLAGS += -Wall \
+               -Wextra \
                -pedantic \
                -DFACTOR_VERSION="$(VERSION)" \
                -DFACTOR_GIT_LABEL="$(GIT_LABEL)" \
@@ -26,6 +27,13 @@ ifdef CONFIG
 
        CXXFLAGS += -std=c++11
 
+       # SANITIZER=address ./build.sh compile
+       # address,thread,undefined,leak
+       ifdef SANITIZER
+               CFLAGS += -fsanitize=$(SANITIZER)
+               CXXFLAGS += -fsanitize=$(SANITIZER)
+       endif
+
        ifneq ($(DEBUG), 0)
                CFLAGS += -g -DFACTOR_DEBUG
        else