]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
zstd binary, when compiled from /tests, enables debug mode
authorYann Collet <cyan@fb.com>
Wed, 13 Dec 2017 02:20:04 +0000 (18:20 -0800)
committerYann Collet <cyan@fb.com>
Wed, 13 Dec 2017 02:20:04 +0000 (18:20 -0800)
adds ZSTD_DEBUG=1 and -g

tests/Makefile

index f944fd5a8675d0a87e051483f9de5014d2a100fe..342a648c0f802acd86c8e011b846b101ca4d199d 100644 (file)
@@ -76,16 +76,16 @@ allnothread: fullbench fuzzer paramgrill datagen decodecorpus
 dll: fuzzer-dll zstreamtest-dll
 
 zstd:
-       $(MAKE) -C $(PRGDIR) $@
+       $(MAKE) -C $(PRGDIR) $@ MOREFLAGS="$(DEBUGFLAGS)"
 
 zstd32:
-       $(MAKE) -C $(PRGDIR) $@
+       $(MAKE) -C $(PRGDIR) $@ MOREFLAGS="$(DEBUGFLAGS)"
 
 zstd-nolegacy:
-       $(MAKE) -C $(PRGDIR) $@
+       $(MAKE) -C $(PRGDIR) $@ MOREFLAGS="$(DEBUGFLAGS)"
 
 gzstd:
-       $(MAKE) -C $(PRGDIR) zstd HAVE_ZLIB=1
+       $(MAKE) -C $(PRGDIR) zstd HAVE_ZLIB=1 MOREFLAGS="$(DEBUGFLAGS)"
 
 fullbench32: CPPFLAGS += -m32
 fullbench fullbench32 : CPPFLAGS += $(MULTITHREAD_CPP)