| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 } | 
| OLD | NEW | 
|---|