Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: build/common.gypi

Issue 7664007: Add _GLIBCXX_DEBUG compilation mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index ee0334ba9194fca62a0445ff6370e4aee05c8b08..48b9163577e514bf5d1859d34b386ee4e9dcc9fb 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -422,6 +422,9 @@
# See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html
'profiling%': '0',
+ # Enable strict glibc debug mode.
+ 'glibcxx_debug%': 0,
+
# Override whether we should use Breakpad on Linux. I.e. for Chrome bot.
'linux_breakpad%': 0,
# And if we want to dump symbols for Breakpad-enabled builds.
@@ -785,6 +788,11 @@
['profiling==1', {
'defines': ['ENABLE_PROFILING=1'],
}],
+ ['OS=="linux" and glibcxx_debug==1', {
+ 'defines': ['_GLIBCXX_DEBUG=1',],
+ 'cflags_cc!': ['-fno-rtti'],
+ 'cflags_cc+': ['-frtti', '-g'],
+ }],
['remoting==1', {
'defines': ['ENABLE_REMOTING=1'],
}],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698