6858127: Missing -DNDEBUG on Linux and Windows native code compiles
authorohair
Wed, 08 Jul 2009 09:11:24 -0700
changeset 3222 432b8f34c3b0
parent 3221 98ac5a3e79e9
child 3223 24e98ad0c62e
6858127: Missing -DNDEBUG on Linux and Windows native code compiles Reviewed-by: tbell, dcubed
jdk/make/common/Defs-linux.gmk
jdk/make/common/Defs-windows.gmk
--- a/jdk/make/common/Defs-linux.gmk	Wed Jul 08 12:07:43 2009 +0800
+++ b/jdk/make/common/Defs-linux.gmk	Wed Jul 08 09:11:24 2009 -0700
@@ -193,7 +193,7 @@
 CPPFLAGS_COMMON += -D_LP64=1
 endif
 
-CPPFLAGS_OPT    = 
+CPPFLAGS_OPT    = -DNDEBUG
 CPPFLAGS_DBG    = -DDEBUG
 ifneq ($(PRODUCT), java)
   CPPFLAGS_DBG    += -DLOGGING 
--- a/jdk/make/common/Defs-windows.gmk	Wed Jul 08 12:07:43 2009 +0800
+++ b/jdk/make/common/Defs-windows.gmk	Wed Jul 08 09:11:24 2009 -0700
@@ -363,7 +363,7 @@
   CFLAGS_COMMON += -WX
 endif
 
-CPPFLAGS_OPT    = 
+CPPFLAGS_OPT    = -DNDEBUG
 CPPFLAGS_DBG    = -DDEBUG -DLOGGING
 
 CXXFLAGS_COMMON = $(CFLAGS_COMMON)