From 17a4452df32a6e6c36905bf71db9bfeffe6d6069 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Tue, 8 May 2012 19:45:49 +0000 Subject: [PATCH] mac: Don't use -Werror on third-party code in official builds. BUG=none TEST=official builders go green Review URL: https://chromiumcodereview.appspot.com/10382068 git-svn-id: http://src.chromium.org/svn/trunk/src/build@135896 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- common.gypi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common.gypi b/common.gypi index 398d0fd19..77f63d50a 100644 --- a/common.gypi +++ b/common.gypi @@ -1550,6 +1550,13 @@ 'xcode_settings': { 'WARNING_CFLAGS!': ['-Wall', '-Wextra'], }, + 'conditions': [ + ['buildtype=="Official"', { + 'xcode_settings': { + 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror + }, + }], + ], }], ], }, {