// http://crbug.com/16512 is open for a real fix for this. For now, Windows
// uses OFFICIAL_BUILD and other platforms use the branding flag when NDEBUG is
// defined.
#if ( defined(OS_WIN) && defined(OFFICIAL_BUILD)) || \
(!defined(OS_WIN) && defined(NDEBUG) && defined(GOOGLE_CHROME_BUILD))
#define LOGGING_IS_OFFICIAL_BUILD 1
#else
#define LOGGING_IS_OFFICIAL_BUILD 0
#endif
LOGGING_IS_OFFICIAL_BUILD is used to compile out the CHECK, PCHECK, CHECK_OP, DLOG* and DCHECK* macros that are used throughout the Chromium code base.
Is there an easy gyp-y way to set these flags globally?