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

Unified Diff: build/common.gypi

Issue 10867058: Try warnings as errors again, except on Official (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase? not sure Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | skia/skia.gyp » ('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 734fa135754f8c709bc8701f508820be4ed53eaa..dd5a42616f7e60f21dfedf00ea277ab0dc4435a2 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -710,6 +710,14 @@
# to get incremental linking to be faster in debug builds.
'incremental_chrome_dll%': '0',
+ # The default settings for third party code for treating
+ # warnings-as-errors. Ideally, this would not be required, however there
+ # is some third party code that takes a long time to fix/roll. So, this
+ # flag allows us to have warnings as errors in general to prevent
+ # regressions in most modules, while working on the bits that are
+ # remaining.
+ 'win_third_party_warn_as_error%': 'true',
+
# This is the location of the sandbox binary. Chrome looks for this before
# running the zygote process. If found, and SUID, it will be used to
# sandbox the zygote process and, thus, all renderer processes.
@@ -1677,10 +1685,17 @@
'msvs_settings': {
'VCCLCompilerTool': {
'WarningLevel': '3',
- 'WarnAsError': 'false', # TODO(maruel): Enable it.
+ 'WarnAsError': '<(win_third_party_warn_as_error)',
'Detect64BitPortabilityProblems': 'false',
},
},
+ 'conditions': [
+ ['buildtype=="Official"', {
+ 'msvs_settings': {
+ 'VCCLCompilerTool': { 'WarnAsError': 'false' },
+ }
+ }],
+ ],
}],
# TODO(darin): Unfortunately, some third_party code depends on base/
[ 'OS=="win" and component=="shared_library"', {
« no previous file with comments | « DEPS ('k') | skia/skia.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698