Reviewers: jochen,

Message:
PTAL

Description:
Enable libstdc++ debug mode in optimized debug level 0 and 1.

See https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode.html for
details about the debug mode.

BUG=v8:3638
LOG=y

Please review this at https://codereview.chromium.org/648293007/

Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+6, -0 lines):
  M build/toolchain.gypi


Index: build/toolchain.gypi
diff --git a/build/toolchain.gypi b/build/toolchain.gypi
index 20c2c943bb9f7240ea12580e051af8c3f7c13ec3..1ab0f8403c1349d9a0135169aed239966fa760d4 100644
--- a/build/toolchain.gypi
+++ b/build/toolchain.gypi
@@ -717,6 +717,9 @@
               '-fdata-sections',
               '-ffunction-sections',
             ],
+            'defines': [
+              '_GLIBCXX_DEBUG'
+            ],
           }],
           ['OS=="mac"', {
             'xcode_settings': {
@@ -762,6 +765,9 @@
               '-ffunction-sections',
               '-O1', # TODO(2807) should be -O3.
             ],
+            'defines': [
+              '_GLIBCXX_DEBUG'
+            ],
             'conditions': [
               ['gcc_version==44 and clang==0', {
                 'cflags': [


--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to