Add option to run the tests with mudflap to detect pointer errors.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user