Reviewers: Mads Ager,
Description:
Allow building V8 with both DEBUG and NDEBUG defined at
the same time (used from the Gyp-based build) on the
experimental issue 555 branch. This is used to build an
optimized version of V8 that runs with assertions enabled.
Please review this at http://codereview.chromium.org/551228
SVN Base: http://v8.googlecode.com/svn/branches/experimental/issue555/
Affected files:
M src/v8.h
Index: src/v8.h
===================================================================
--- src/v8.h (revision 3745)
+++ src/v8.h (working copy)
@@ -32,18 +32,15 @@
#ifndef V8_V8_H_
#define V8_V8_H_
-#if defined(GOOGLE3)
-// Google3 special flag handling.
#if defined(DEBUG) && defined(NDEBUG)
-// If both are defined in Google3, then we are building an optimized v8
with
+// If both are defined then we are building an optimized v8 with
// assertions enabled.
#undef NDEBUG
#elif !defined(DEBUG) && !defined(NDEBUG)
-// If neither is defined in Google3, then we are building a debug v8. Mark
it
-// as such.
+// If neither is defined then we default to building a debug v8. Mark
+// it as such.
#define DEBUG
#endif
-#endif // defined(GOOGLE3)
// V8 only uses DEBUG, but included external files
// may use NDEBUG - make sure they are consistent.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev