summaryrefslogtreecommitdiffstats
path: root/cmd/ztest
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2015-12-11 18:40:05 -0500
committerBrian Behlendorf <[email protected]>2015-12-14 12:53:09 -0800
commit27075111ed93f5290fbb5d801964aa20ed7a9d35 (patch)
treee91bdf2b0ebc6bef4dcac87cde3ade81aaac2510 /cmd/ztest
parent245b7ab3d1c06efe5b76a9412996fac50aa77f72 (diff)
Unconditionally build zdb and ztest with -DDEBUG
Illumos unconditionally builds zdb and ztest with -DDEBUG. This helps catch bugs and eliminates the need for commits like 202619623022722f30c2ee49931a4fa6896421c7, which changed ASSERTs to VERIFYs. The following files in the illumos tree show this: usr/src/cmd/zdb/Makefile.com usr/src/cmd/ztest/Makefile.com Given the usefulness of having early failure in these tools, we should do it too. Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue #4095
Diffstat (limited to 'cmd/ztest')
-rw-r--r--cmd/ztest/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/ztest/Makefile.am b/cmd/ztest/Makefile.am
index ef4d99f28..e3be39a0c 100644
--- a/cmd/ztest/Makefile.am
+++ b/cmd/ztest/Makefile.am
@@ -1,6 +1,7 @@
include $(top_srcdir)/config/Rules.am
AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN)
+AM_CPPFLAGS += -DDEBUG
DEFAULT_INCLUDES += \
-I$(top_srcdir)/include \