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

Side by Side Diff: build/common.gypi

Issue 1261953003: clang/win: Build chromium_code with -Wunused-function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 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
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | 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 3130 matching lines...) Expand 10 before | Expand all | Expand 10 after
3141 ['enable_wexit_time_destructors==1 and OS!="win"', { 3141 ['enable_wexit_time_destructors==1 and OS!="win"', {
3142 # TODO: Enable on Windows too, http://crbug.com/404525 3142 # TODO: Enable on Windows too, http://crbug.com/404525
3143 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']}, 3143 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']},
3144 }], 3144 }],
3145 ['chromium_code==0', { 3145 ['chromium_code==0', {
3146 'variables': { 3146 'variables': {
3147 'clang_warning_flags': [ 3147 'clang_warning_flags': [
3148 # TODO(mgiuca): Move this suppression into individual third-party 3148 # TODO(mgiuca): Move this suppression into individual third-party
3149 # libraries as required. http://crbug.com/505301. 3149 # libraries as required. http://crbug.com/505301.
3150 '-Wno-overloaded-virtual', 3150 '-Wno-overloaded-virtual',
3151 # TODO(thakis): Move this suppression into individual third-party
3152 # libraries as required. http://crbug.com/505316.
3153 '-Wno-unused-function',
3151 # Lots of third-party libraries have unused variables. Instead of 3154 # Lots of third-party libraries have unused variables. Instead of
3152 # suppressing them individually, we just blanket suppress them here. 3155 # suppressing them individually, we just blanket suppress them here.
3153 '-Wno-unused-variable', 3156 '-Wno-unused-variable',
3154 ], 3157 ],
3155 }, 3158 },
3156 'conditions': [ 3159 'conditions': [
3157 [ 'os_posix==1 and OS!="mac" and OS!="ios"', { 3160 [ 'os_posix==1 and OS!="mac" and OS!="ios"', {
3158 # We don't want to get warnings from third-party code, 3161 # We don't want to get warnings from third-party code,
3159 # so remove any existing warning-enabling flags like -Wall. 3162 # so remove any existing warning-enabling flags like -Wall.
3160 'cflags!': [ 3163 'cflags!': [
(...skipping 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after
5796 'AdditionalOptions': [ 5799 'AdditionalOptions': [
5797 # Many files use intrinsics without including this header. 5800 # Many files use intrinsics without including this header.
5798 # TODO(hans): Fix those files, or move this to sub-GYPs. 5801 # TODO(hans): Fix those files, or move this to sub-GYPs.
5799 '/FIIntrin.h', 5802 '/FIIntrin.h',
5800 5803
5801 # TODO(hans): Make this list shorter eventually, http://crbug. com/504657 5804 # TODO(hans): Make this list shorter eventually, http://crbug. com/504657
5802 '-Qunused-arguments', # http://crbug.com/504658 5805 '-Qunused-arguments', # http://crbug.com/504658
5803 '-Wno-microsoft', # http://crbug.com/505296 5806 '-Wno-microsoft', # http://crbug.com/505296
5804 '-Wno-switch', # http://crbug.com/505308 5807 '-Wno-switch', # http://crbug.com/505308
5805 '-Wno-unknown-pragmas', # http://crbug.com/505314 5808 '-Wno-unknown-pragmas', # http://crbug.com/505314
5806 '-Wno-unused-function', # http://crbug.com/505316
5807 '-Wno-unused-value', # http://crbug.com/505318 5809 '-Wno-unused-value', # http://crbug.com/505318
5808 ], 5810 ],
5809 }, 5811 },
5810 }], 5812 }],
5811 ['clang==1 and clang_use_chrome_plugins==1', { 5813 ['clang==1 and clang_use_chrome_plugins==1', {
5812 'VCCLCompilerTool': { 5814 'VCCLCompilerTool': {
5813 'AdditionalOptions': [ 5815 'AdditionalOptions': [
5814 '<@(clang_chrome_plugins_flags)', 5816 '<@(clang_chrome_plugins_flags)',
5815 ], 5817 ],
5816 }, 5818 },
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
6312 # settings in target dicts. SYMROOT is a special case, because many other 6314 # settings in target dicts. SYMROOT is a special case, because many other
6313 # Xcode variables depend on it, including variables such as 6315 # Xcode variables depend on it, including variables such as
6314 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6316 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6315 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6317 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6316 # files to appear (when present) in the UI as actual files and not red 6318 # files to appear (when present) in the UI as actual files and not red
6317 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6319 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6318 # and therefore SYMROOT, needs to be set at the project level. 6320 # and therefore SYMROOT, needs to be set at the project level.
6319 'SYMROOT': '<(DEPTH)/xcodebuild', 6321 'SYMROOT': '<(DEPTH)/xcodebuild',
6320 }, 6322 },
6321 } 6323 }
OLDNEW
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698