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

Side by Side Diff: build/common.gypi

Issue 224713007: Make it possible to disable fatal linker warnings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 1223
1224 # Enable EGLImage support in OpenMAX 1224 # Enable EGLImage support in OpenMAX
1225 'enable_eglimage%': 1, 1225 'enable_eglimage%': 1,
1226 1226
1227 # .gyp files or targets should set chromium_code to 1 if they build 1227 # .gyp files or targets should set chromium_code to 1 if they build
1228 # Chromium-specific code, as opposed to external code. This variable is 1228 # Chromium-specific code, as opposed to external code. This variable is
1229 # used to control such things as the set of warnings to enable, and 1229 # used to control such things as the set of warnings to enable, and
1230 # whether warnings are treated as errors. 1230 # whether warnings are treated as errors.
1231 'chromium_code%': 0, 1231 'chromium_code%': 0,
1232 1232
1233 # Disable fatal linker warnings, similarly to how we make it possible
1234 # to disable -Werror (e.g. for different toolchain versions).
1235 'disable_fatal_linker_warnings%': 0,
1236
1233 'release_valgrind_build%': 0, 1237 'release_valgrind_build%': 0,
1234 1238
1235 # TODO(thakis): Make this a blacklist instead, http://crbug.com/101600 1239 # TODO(thakis): Make this a blacklist instead, http://crbug.com/101600
1236 'enable_wexit_time_destructors%': 0, 1240 'enable_wexit_time_destructors%': 0,
1237 1241
1238 # Build libpeerconnection as a static library by default. 1242 # Build libpeerconnection as a static library by default.
1239 'libpeer_target_type%': 'static_library', 1243 'libpeer_target_type%': 'static_library',
1240 1244
1241 # Set to 1 to compile with the built in pdf viewer. 1245 # Set to 1 to compile with the built in pdf viewer.
1242 'internal_pdf%': 0, 1246 'internal_pdf%': 0,
(...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after
3063 }, 3067 },
3064 'Release_x64': { 3068 'Release_x64': {
3065 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], 3069 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'],
3066 }, 3070 },
3067 }], 3071 }],
3068 ], 3072 ],
3069 }, 3073 },
3070 }, 3074 },
3071 'conditions': [ 3075 'conditions': [
3072 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 3076 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580
3073 ['os_posix==1 and (chromeos==0 or target_arch!="arm")', { 3077 ['os_posix==1 and (chromeos==0 or target_arch!="arm")', {
jochen (gone - plz use gerrit) 2014/04/04 15:02:40 can you move the 'and (...)' part to the condition
Paweł Hajdan Jr. 2014/04/04 15:09:33 Done. Note that now this might unexpectedly break
3074 'target_defaults': { 3078 'target_defaults': {
3075 'ldflags': [ 3079 'ldflags': [
3076 '-Wl,--fatal-warnings',
3077 '-Wl,-z,now', 3080 '-Wl,-z,now',
3078 '-Wl,-z,relro', 3081 '-Wl,-z,relro',
3079 ], 3082 ],
3080 }, 3083 },
3084 'conditions': [
3085 ['disable_fatal_linker_warnings==0', {
3086 'target_defaults': {
3087 'ldflags': [
3088 '-Wl,--fatal-warnings',
3089 ],
3090 },
3091 }],
3092 ],
3081 }], 3093 }],
3082 ['os_posix==1 and chromeos==0', { 3094 ['os_posix==1 and chromeos==0', {
3083 # Chrome OS enables -fstack-protector-strong via its build wrapper, 3095 # Chrome OS enables -fstack-protector-strong via its build wrapper,
3084 # and we want to avoid overriding this, so stack-protector is only 3096 # and we want to avoid overriding this, so stack-protector is only
3085 # enabled when not building on Chrome OS. 3097 # enabled when not building on Chrome OS.
3086 # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc 3098 # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc
3087 # supports it. 3099 # supports it.
3088 'target_defaults': { 3100 'target_defaults': {
3089 'cflags': [ 3101 'cflags': [
3090 '-fstack-protector', 3102 '-fstack-protector',
(...skipping 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after
5217 # settings in target dicts. SYMROOT is a special case, because many other 5229 # settings in target dicts. SYMROOT is a special case, because many other
5218 # Xcode variables depend on it, including variables such as 5230 # Xcode variables depend on it, including variables such as
5219 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5231 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5220 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5232 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5221 # files to appear (when present) in the UI as actual files and not red 5233 # files to appear (when present) in the UI as actual files and not red
5222 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5234 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5223 # and therefore SYMROOT, needs to be set at the project level. 5235 # and therefore SYMROOT, needs to be set at the project level.
5224 'SYMROOT': '<(DEPTH)/xcodebuild', 5236 'SYMROOT': '<(DEPTH)/xcodebuild',
5225 }, 5237 },
5226 } 5238 }
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