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: http://src.chromium.org/svn/trunk/src/build@103747 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
mark@chromium.org 2011-10-03 18:22:38 +00:00
Родитель ab51863245
Коммит 05269bbaa8
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -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',