diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-03 18:22:38 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-03 18:22:38 +0000 |
commit | a79fd88dfdb3e5fc80e20336f253972e59bbfd53 (patch) | |
tree | f4a94700afbabaea81353f9f644ad05363f2bf30 /build | |
parent | 6278880b2032063836a408a27a02e319448ac633 (diff) | |
download | chromium_src-a79fd88dfdb3e5fc80e20336f253972e59bbfd53.zip chromium_src-a79fd88dfdb3e5fc80e20336f253972e59bbfd53.tar.gz chromium_src-a79fd88dfdb3e5fc80e20336f253972e59bbfd53.tar.bz2 |
Disable CLANG_WARN_CXX0X_EXTENSIONS (-Wc++0x-extensions) when building with
clang under Xcode 4.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8116006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index bd7956e..77047a1 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -2092,16 +2092,27 @@ ['clang==1', { 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang', 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++', + + # Don't use -Wc++0x-extensions, which Xcode 4 enables by default + # when buliding with clang. This warning is triggered when the + # override keyword is used via the OVERRIDE macro from + # base/compiler_specific.h. + 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO', + 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', 'WARNING_CFLAGS': [ '-Wheader-hygiene', + # Don't die on dtoa code that uses a char as an array index. # This is required solely for base/third_party/dmg_fp/dtoa.cc. '-Wno-char-subscripts', + # Clang spots more unused functions. '-Wno-unused-function', + # See comments on this flag higher up in this file. '-Wno-unnamed-type-template-args', + # TODO(thakis): Reenable once the one instance this warns on # is fixed. '-Wno-parentheses', |