commit c257299fa4bd3b4637374200e4f34a8894bbe959
parent 8802ad5f403c877dc4d4ba86d66e44e2d8618e89
Author: Joris Vink <joris@coders.se>
Date: Tue, 12 Jun 2018 19:43:10 +0200
add shorthand for building with fsanitize.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -89,6 +89,11 @@ ifneq ("$(PYTHON)", "")
FEATURES_INC+=$(shell python3-config --includes)
endif
+ifneq ("$(SANITIZE)", "")
+ CFLAGS+=-fsanitize=$(SANITIZE)
+ LDFLAGS+=-fsanitize=$(SANITIZE)
+endif
+
OSNAME=$(shell uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z)
ifeq ("$(OSNAME)", "darwin")
CFLAGS+=-I/opt/local/include/ -I/usr/local/opt/openssl/include