From b25576a75b50110ce18643c457a37eee348ac66e Mon Sep 17 00:00:00 2001 From: "fischman@webrtc.org" Date: Wed, 26 Mar 2014 21:53:47 +0000 Subject: [PATCH] talk/: enable _DEBUG in Debug for all posix Chromium's build/common.gypi defines _DEBUG for Debug builds _except_ on (OS=="mac" OS=="ios"). But libjingle uses _DEBUG on all platforms so define it on all posix (chromium covers non-posix separately and fine). BUG=webrtc:3101 R=juberti@google.com Review URL: https://webrtc-codereview.appspot.com/10699004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5795 4adac7df-926f-26a2-2b94-8c16560cd09d --- talk/build/common.gypi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/talk/build/common.gypi b/talk/build/common.gypi index c81297482..63ad9abf6 100644 --- a/talk/build/common.gypi +++ b/talk/build/common.gypi @@ -114,6 +114,16 @@ ], }], ['os_posix==1', { + 'configurations': { + 'Debug_Base': { + 'defines': [ + # Chromium's build/common.gypi defines this for all posix _except_ + # for ios & mac. We want it there as well, e.g. because ASSERT + # and friends trigger off of it. + '_DEBUG', + ], + }, + }, 'defines': [ 'HASH_NAMESPACE=__gnu_cxx', 'POSIX',