Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: build/common.gypi

Issue 8116006: Disable CLANG_WARN_CXX0X_EXTENSIONS (-Wc++0x-extensions) when building with clang under Xcode 4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after
2085 # pattern. 2085 # pattern.
2086 '-Wno-missing-field-initializers', 2086 '-Wno-missing-field-initializers',
2087 ], 2087 ],
2088 'conditions': [ 2088 'conditions': [
2089 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, 2089 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'},
2090 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} 2090 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}
2091 ], 2091 ],
2092 ['clang==1', { 2092 ['clang==1', {
2093 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang', 2093 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang',
2094 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++', 2094 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++',
2095
2096 # Don't use -Wc++0x-extensions, which Xcode 4 enables by default
2097 # when buliding with clang. This warning is triggered when the
2098 # override keyword is used via the OVERRIDE macro from
2099 # base/compiler_specific.h.
2100 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO',
2101
2095 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', 2102 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
2096 'WARNING_CFLAGS': [ 2103 'WARNING_CFLAGS': [
2097 '-Wheader-hygiene', 2104 '-Wheader-hygiene',
2105
2098 # Don't die on dtoa code that uses a char as an array index. 2106 # Don't die on dtoa code that uses a char as an array index.
2099 # This is required solely for base/third_party/dmg_fp/dtoa.cc. 2107 # This is required solely for base/third_party/dmg_fp/dtoa.cc.
2100 '-Wno-char-subscripts', 2108 '-Wno-char-subscripts',
2109
2101 # Clang spots more unused functions. 2110 # Clang spots more unused functions.
2102 '-Wno-unused-function', 2111 '-Wno-unused-function',
2112
2103 # See comments on this flag higher up in this file. 2113 # See comments on this flag higher up in this file.
2104 '-Wno-unnamed-type-template-args', 2114 '-Wno-unnamed-type-template-args',
2115
2105 # TODO(thakis): Reenable once the one instance this warns on 2116 # TODO(thakis): Reenable once the one instance this warns on
2106 # is fixed. 2117 # is fixed.
2107 '-Wno-parentheses', 2118 '-Wno-parentheses',
2108 ], 2119 ],
2109 }], 2120 }],
2110 ['clang==1 and clang_use_chrome_plugins==1', { 2121 ['clang==1 and clang_use_chrome_plugins==1', {
2111 'OTHER_CFLAGS': [ 2122 'OTHER_CFLAGS': [
2112 '<(clang_chrome_plugins_flags)', 2123 '<(clang_chrome_plugins_flags)',
2113 ], 2124 ],
2114 }], 2125 }],
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
2467 # settings in target dicts. SYMROOT is a special case, because many other 2478 # settings in target dicts. SYMROOT is a special case, because many other
2468 # Xcode variables depend on it, including variables such as 2479 # Xcode variables depend on it, including variables such as
2469 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 2480 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2470 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 2481 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2471 # files to appear (when present) in the UI as actual files and not red 2482 # files to appear (when present) in the UI as actual files and not red
2472 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 2483 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2473 # and therefore SYMROOT, needs to be set at the project level. 2484 # and therefore SYMROOT, needs to be set at the project level.
2474 'SYMROOT': '<(DEPTH)/xcodebuild', 2485 'SYMROOT': '<(DEPTH)/xcodebuild',
2475 }, 2486 },
2476 } 2487 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698