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

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 1311693002: clang/win: Enable most of -Wmicrosoft. (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 | « build/common.gypi ('k') | 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) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 if (current_cpu == "arm") { 7 if (current_cpu == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 default_warning_flags += [ "/wd4702" ] # Unreachable code. 857 default_warning_flags += [ "/wd4702" ] # Unreachable code.
858 } 858 }
859 859
860 # Building with Clang on Windows is a work in progress and very 860 # Building with Clang on Windows is a work in progress and very
861 # experimental. See crbug.com/82385. 861 # experimental. See crbug.com/82385.
862 # Keep this in sync with the similar block in build/common.gypi 862 # Keep this in sync with the similar block in build/common.gypi
863 if (is_clang) { 863 if (is_clang) {
864 default_warning_flags += [ 864 default_warning_flags += [
865 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657 865 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657
866 "-Qunused-arguments", # http://crbug.com/504658 866 "-Qunused-arguments", # http://crbug.com/504658
867 "-Wno-microsoft", # http://crbug.com/505296 867 "-Wno-microsoft-unqualified-friend", # http://crbug.com/505296
868 "-Wno-microsoft-enum-value", # http://crbug.com/505296
868 "-Wno-unknown-pragmas", # http://crbug.com/505314 869 "-Wno-unknown-pragmas", # http://crbug.com/505314
869 "-Wno-unused-value", # http://crbug.com/505318 870 "-Wno-unused-value", # http://crbug.com/505318
870 ] 871 ]
871 } 872 }
872 } else { 873 } else {
873 # Common GCC warning setup. 874 # Common GCC warning setup.
874 default_warning_flags += [ 875 default_warning_flags += [
875 # Enables. 876 # Enables.
876 "-Wendif-labels", # Weird old-style text after an #endif. 877 "-Wendif-labels", # Weird old-style text after an #endif.
877 "-Werror", # Warnings as errors. 878 "-Werror", # Warnings as errors.
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1337 cflags += [ "-gsplit-dwarf" ] 1338 cflags += [ "-gsplit-dwarf" ]
1338 } 1339 }
1339 } 1340 }
1340 } 1341 }
1341 1342
1342 config("no_symbols") { 1343 config("no_symbols") {
1343 if (!is_win) { 1344 if (!is_win) {
1344 cflags = [ "-g0" ] 1345 cflags = [ "-g0" ]
1345 } 1346 }
1346 } 1347 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698