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

Side by Side Diff: build/common.gypi

Issue 14992005: clang: Turn on C++11 on CrOs too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 3021 matching lines...) Expand 10 before | Expand all | Expand 10 after
3032 '-Wno-covered-switch-default', 3032 '-Wno-covered-switch-default',
3033 3033
3034 # Warns when a const char[] is converted to bool. 3034 # Warns when a const char[] is converted to bool.
3035 '-Wstring-conversion', 3035 '-Wstring-conversion',
3036 ], 3036 ],
3037 'cflags!': [ 3037 'cflags!': [
3038 # Clang doesn't seem to know know this flag. 3038 # Clang doesn't seem to know know this flag.
3039 '-mfpmath=sse', 3039 '-mfpmath=sse',
3040 ], 3040 ],
3041 }], 3041 }],
3042 ['clang==1 and (OS!="android" and chromeos!=1)', { 3042 ['clang==1 and OS!="android"', {
3043 # Turn on C++11. 3043 # Turn on C++11.
3044 'cflags': [ 3044 'cflags': [
3045 # This warns on using ints as initializers for floats in 3045 # This warns on using ints as initializers for floats in
3046 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|), 3046 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|),
3047 # which happens in several places in chrome code. Not sure if 3047 # which happens in several places in chrome code. Not sure if
3048 # this is worth fixing. 3048 # this is worth fixing.
3049 '-Wno-c++11-narrowing', 3049 '-Wno-c++11-narrowing',
3050 3050
3051 # This warns about code like |"0x%08"NACL_PRIxPTR| -- with C++11 3051 # This warns about code like |"0x%08"NACL_PRIxPTR| -- with C++11
3052 # user-defined literals, this is now a string literal with a UD 3052 # user-defined literals, this is now a string literal with a UD
3053 # suffix. However, this is used heavily in NaCl code, so disable 3053 # suffix. However, this is used heavily in NaCl code, so disable
3054 # the warning for now. 3054 # the warning for now.
3055 '-Wno-reserved-user-defined-literal', 3055 '-Wno-reserved-user-defined-literal',
3056 ], 3056 ],
3057 'cflags_cc': [ 3057 'cflags_cc': [
3058 # See the comment in the Mac section for what it takes to move 3058 # See the comment in the Mac section for what it takes to move
3059 # this to -std=c++11. 3059 # this to -std=c++11.
3060 '-std=gnu++11', 3060 '-std=gnu++11',
3061 ], 3061 ],
3062 }], 3062 }],
3063 ['clang==1 and (OS=="android" or chromeos==1)', { 3063 ['clang==1 and OS=="android"', {
3064 # Android uses gcc4.4, and clang isn't compatible with gcc4.4's 3064 # Android uses gcc4.4, and clang isn't compatible with gcc4.4's
3065 # libstdc++ in C++11 mode. So no C++11 mode for Android yet. 3065 # libstdc++ in C++11 mode. So no C++11 mode for Android yet.
3066 # Doesn't work with asan for some reason either: crbug.com/233464 3066 # Doesn't work with asan for some reason either: crbug.com/233464
3067 'cflags': [ 3067 'cflags': [
3068 # Especially needed for gtest macros using enum values from Mac 3068 # Especially needed for gtest macros using enum values from Mac
3069 # system headers. 3069 # system headers.
3070 # TODO(pkasting): In C++11 this is legal, so this should be 3070 # TODO(pkasting): In C++11 this is legal, so this should be
3071 # removed when we change to that. (This is also why we don't 3071 # removed when we change to that. (This is also why we don't
3072 # bother fixing all these cases today.) 3072 # bother fixing all these cases today.)
3073 '-Wno-unnamed-type-template-args', 3073 '-Wno-unnamed-type-template-args',
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after
4436 # settings in target dicts. SYMROOT is a special case, because many other 4436 # settings in target dicts. SYMROOT is a special case, because many other
4437 # Xcode variables depend on it, including variables such as 4437 # Xcode variables depend on it, including variables such as
4438 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4438 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4439 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4439 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4440 # files to appear (when present) in the UI as actual files and not red 4440 # files to appear (when present) in the UI as actual files and not red
4441 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4441 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4442 # and therefore SYMROOT, needs to be set at the project level. 4442 # and therefore SYMROOT, needs to be set at the project level.
4443 'SYMROOT': '<(DEPTH)/xcodebuild', 4443 'SYMROOT': '<(DEPTH)/xcodebuild',
4444 }, 4444 },
4445 } 4445 }
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