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

Side by Side Diff: build/common.gypi

Issue 1846633004: Revert of clang/win: Stop passing -Qunused-arguments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« 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 5612 matching lines...) Expand 10 before | Expand all | Expand 10 after
5623 # PGO builds is likely very small. 5623 # PGO builds is likely very small.
5624 'msvs_disabled_warnings': [ 5624 'msvs_disabled_warnings': [
5625 4702 5625 4702
5626 ], 5626 ],
5627 'msvs_settings': { 5627 'msvs_settings': {
5628 'VCCLCompilerTool': { 5628 'VCCLCompilerTool': {
5629 # 2, optimizeMaxSpeed, Maximize Speed (/O2) 5629 # 2, optimizeMaxSpeed, Maximize Speed (/O2)
5630 'Optimization': '2', 5630 'Optimization': '2',
5631 # 1, favorSpeed - Favor fast code (/Ot) 5631 # 1, favorSpeed - Favor fast code (/Ot)
5632 'FavorSizeOrSpeed': '1', 5632 'FavorSizeOrSpeed': '1',
5633 # This implies link time code generation.
5634 'WholeProgramOptimization': 'true',
5633 }, 5635 },
5634 }, 5636 },
5635 # TODO(thakis): Remove clang==0 here, https://crbug.com/598772
5636 'conditions': [
5637 ['clang==0', {
5638 'msvs_settings': {
5639 'VCCLCompilerTool': {
5640 # This implies link time code generation.
5641 'WholeProgramOptimization': 'true',
5642 },
5643 },
5644 }],
5645 ],
5646 }], 5637 }],
5647 ], 5638 ],
5648 }], 5639 }],
5649 ['msvs_xtree_patched!=1', { 5640 ['msvs_xtree_patched!=1', {
5650 # If xtree hasn't been patched, then we disable C4702. Otherwise, 5641 # If xtree hasn't been patched, then we disable C4702. Otherwise,
5651 # it's enabled. This will generally only be true for system-level 5642 # it's enabled. This will generally only be true for system-level
5652 # installed Express users. 5643 # installed Express users.
5653 'msvs_disabled_warnings': [ 5644 'msvs_disabled_warnings': [
5654 4702, # unreachable code 5645 4702, # unreachable code
5655 ], 5646 ],
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
5743 5734
5744 # TODO(brucedawson): http://crbug.com/593448 4334 is a 'suspicious 5735 # TODO(brucedawson): http://crbug.com/593448 4334 is a 'suspicious
5745 # shift' warning and 4595 is an 'illegal inline operator new' warning 5736 # shift' warning and 4595 is an 'illegal inline operator new' warning
5746 # Both are new in VS 2015 Update 2 and can safely be deferred for now. 5737 # Both are new in VS 2015 Update 2 and can safely be deferred for now.
5747 4334, 4595, 5738 4334, 4595,
5748 ], 5739 ],
5749 'msvs_settings': { 5740 'msvs_settings': {
5750 'VCCLCompilerTool': { 5741 'VCCLCompilerTool': {
5751 'AdditionalOptions': ['/MP'], 5742 'AdditionalOptions': ['/MP'],
5752 'MinimalRebuild': 'false', 5743 'MinimalRebuild': 'false',
5744 'BufferSecurityCheck': 'true',
5753 'EnableFunctionLevelLinking': 'true', 5745 'EnableFunctionLevelLinking': 'true',
5754 'RuntimeTypeInfo': 'false', 5746 'RuntimeTypeInfo': 'false',
5755 'WarningLevel': '4', 5747 'WarningLevel': '4',
5756 'WarnAsError': 'true', 5748 'WarnAsError': 'true',
5757 'DebugInformationFormat': '3', 5749 'DebugInformationFormat': '3',
5758 # ExceptionHandling must match _HAS_EXCEPTIONS above. 5750 # ExceptionHandling must match _HAS_EXCEPTIONS above.
5759 'ExceptionHandling': '0', 5751 'ExceptionHandling': '0',
5760 }, 5752 },
5761 'VCLibrarianTool': { 5753 'VCLibrarianTool': {
5762 'AdditionalOptions': ['/ignore:4221'], 5754 'AdditionalOptions': ['/ignore:4221'],
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
5815 }], 5807 }],
5816 ['_type=="executable" and ">(win_exe_compatibility_manifest)"!=""', { 5808 ['_type=="executable" and ">(win_exe_compatibility_manifest)"!=""', {
5817 'VCManifestTool': { 5809 'VCManifestTool': {
5818 'AdditionalManifestFiles': [ 5810 'AdditionalManifestFiles': [
5819 '>(win_exe_compatibility_manifest)', 5811 '>(win_exe_compatibility_manifest)',
5820 ], 5812 ],
5821 }, 5813 },
5822 }], 5814 }],
5823 ], 5815 ],
5824 'conditions': [ 5816 'conditions': [
5825 ['clang==0', {
5826 'VCCLCompilerTool': {
5827 # TODO(thakis): Enable this with clang too,
5828 # https://crbug.com/598767
5829 'BufferSecurityCheck': 'true',
5830 },
5831 }],
5832
5833 # Building with Clang on Windows is a work in progress and very 5817 # Building with Clang on Windows is a work in progress and very
5834 # experimental. See crbug.com/82385. 5818 # experimental. See crbug.com/82385.
5835 # Keep this in sync with the similar blocks in build/config/compiler /BUILD.gn 5819 # Keep this in sync with the similar blocks in build/config/compiler /BUILD.gn
5836 ['clang==1', { 5820 ['clang==1', {
5837 'VCCLCompilerTool': { 5821 'VCCLCompilerTool': {
5838 'AdditionalOptions': [ 5822 'AdditionalOptions': [
5839 # Don't warn about unused function parameters. 5823 # Don't warn about unused function parameters.
5840 # (This is also used on other platforms.) 5824 # (This is also used on other platforms.)
5841 '-Wno-unused-parameter', 5825 '-Wno-unused-parameter',
5842 # Don't warn about the "struct foo f = {0};" initialization 5826 # Don't warn about the "struct foo f = {0};" initialization
5843 # pattern. 5827 # pattern.
5844 '-Wno-missing-field-initializers', 5828 '-Wno-missing-field-initializers',
5845 5829
5846 # Many files use intrinsics without including this header. 5830 # Many files use intrinsics without including this header.
5847 # TODO(hans): Fix those files, or move this to sub-GYPs. 5831 # TODO(hans): Fix those files, or move this to sub-GYPs.
5848 '/FIIntrin.h', 5832 '/FIIntrin.h',
5849 5833
5850 # TODO(hans): Make this list shorter eventually, http://crbug. com/504657 5834 # TODO(hans): Make this list shorter eventually, http://crbug. com/504657
5835 '-Qunused-arguments', # http://crbug.com/504658
5851 '-Wno-microsoft-enum-value', # http://crbug.com/505296 5836 '-Wno-microsoft-enum-value', # http://crbug.com/505296
5852 '-Wno-unknown-pragmas', # http://crbug.com/505314 5837 '-Wno-unknown-pragmas', # http://crbug.com/505314
5853 '-Wno-microsoft-cast', # http://crbug.com/550065 5838 '-Wno-microsoft-cast', # http://crbug.com/550065
5854 ], 5839 ],
5855 }, 5840 },
5856 }], 5841 }],
5857 ['clang==1 and clang_use_chrome_plugins==1', { 5842 ['clang==1 and clang_use_chrome_plugins==1', {
5858 'VCCLCompilerTool': { 5843 'VCCLCompilerTool': {
5859 'AdditionalOptions': [ 5844 'AdditionalOptions': [
5860 '<@(clang_chrome_plugins_flags)', 5845 '<@(clang_chrome_plugins_flags)',
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
6391 # settings in target dicts. SYMROOT is a special case, because many other 6376 # settings in target dicts. SYMROOT is a special case, because many other
6392 # Xcode variables depend on it, including variables such as 6377 # Xcode variables depend on it, including variables such as
6393 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6378 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6394 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6379 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6395 # files to appear (when present) in the UI as actual files and not red 6380 # files to appear (when present) in the UI as actual files and not red
6396 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6381 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6397 # and therefore SYMROOT, needs to be set at the project level. 6382 # and therefore SYMROOT, needs to be set at the project level.
6398 'SYMROOT': '<(DEPTH)/xcodebuild', 6383 'SYMROOT': '<(DEPTH)/xcodebuild',
6399 }, 6384 },
6400 } 6385 }
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