Add option to run the tests with mudflap to detect pointer errors.

This commit is contained in:
Petteri Aimonen
2013-03-09 13:09:14 +02:00
parent 96d4016838
commit 60109c0be1

View File

@@ -22,6 +22,14 @@ ifneq (,$(findstring clang,$(CC_VERSION)))
CFLAGS_CORE=-pedantic -Wextra -Wcast-qual -Wconversion CFLAGS_CORE=-pedantic -Wextra -Wcast-qual -Wconversion
endif endif
# Also use mudflap if it is available
# To enable, run with make -B USE_MUDFLAP=y
USE_MUDFLAP ?= n
ifeq ($(USE_MUDFLAP),y)
CFLAGS += -fmudflap
LDFLAGS += -lmudflap -fmudflap
endif
all: breakpoints $(TESTS) run_unittests all: breakpoints $(TESTS) run_unittests
clean: clean: