diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-01-17 20:22:28 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-01-17 20:24:56 +0100 |
commit | 9ca75aa716c2441ae5359417f83ff10cd295abc1 (patch) | |
tree | 9d250ef4052eb0f3080a4a7931ea13584c4de7c2 /Makerules | |
parent | 7717134caf490d306b69a80d9be89c655f2dfc91 (diff) | |
download | mupdf-9ca75aa716c2441ae5359417f83ff10cd295abc1.tar.xz |
Automatically turn on PACIFY_VALGRIND for debug builds.
Add 'build=valgrind' configuration.
Diffstat (limited to 'Makerules')
-rw-r--r-- | Makerules | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -30,6 +30,9 @@ LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s else ifeq "$(build)" "small" CFLAGS += -pipe -Os -DNDEBUG -fomit-frame-pointer LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s +else ifeq "$(build)" "valgrind" +CFLAGS += -pipe -O2 -DNDEBUG -DPACIFY_VALGRIND -fno-omit-frame-pointer +LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s else ifeq "$(build)" "sanitize" CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer LDFLAGS += -fsanitize=address |