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

Unified Diff: build/common.gypi

Issue 1828543003: clang/win: Stop passing -Qunused-arguments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try to fix official Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index ee31a8d28ba7fec7d927613fae4a61577e706d4e..d7fa5d6308317fdd78af3446dd381e1e50dbae3e 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -5630,10 +5630,19 @@
'Optimization': '2',
# 1, favorSpeed - Favor fast code (/Ot)
'FavorSizeOrSpeed': '1',
- # This implies link time code generation.
- 'WholeProgramOptimization': 'true',
},
},
+ # TODO(thakis): Remove clang==0 here, https://crbug.com/598772
+ 'conditions': [
+ ['clang==0', {
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ # This implies link time code generation.
+ 'WholeProgramOptimization': 'true',
+ },
+ },
+ }],
+ ],
}],
],
}],
@@ -5741,7 +5750,6 @@
'VCCLCompilerTool': {
'AdditionalOptions': ['/MP'],
'MinimalRebuild': 'false',
- 'BufferSecurityCheck': 'true',
'EnableFunctionLevelLinking': 'true',
'RuntimeTypeInfo': 'false',
'WarningLevel': '4',
@@ -5814,6 +5822,14 @@
}],
],
'conditions': [
+ ['clang==0', {
+ 'VCCLCompilerTool': {
+ # TODO(thakis): Enable this with clang too,
+ # https://crbug.com/598767
+ 'BufferSecurityCheck': 'true',
+ },
+ }],
+
# Building with Clang on Windows is a work in progress and very
# experimental. See crbug.com/82385.
# Keep this in sync with the similar blocks in build/config/compiler/BUILD.gn
@@ -5832,7 +5848,6 @@
'/FIIntrin.h',
# TODO(hans): Make this list shorter eventually, http://crbug.com/504657
- '-Qunused-arguments', # http://crbug.com/504658
'-Wno-microsoft-enum-value', # http://crbug.com/505296
'-Wno-unknown-pragmas', # http://crbug.com/505314
'-Wno-microsoft-cast', # http://crbug.com/550065
« 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