| 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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 # Building with Clang on Windows is a work in progress and very | 842 # Building with Clang on Windows is a work in progress and very |
| 843 # experimental. See crbug.com/82385. | 843 # experimental. See crbug.com/82385. |
| 844 # Keep this in sync with the similar block in build/common.gypi | 844 # Keep this in sync with the similar block in build/common.gypi |
| 845 if (is_clang) { | 845 if (is_clang) { |
| 846 default_warning_flags += [ | 846 default_warning_flags += [ |
| 847 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657 | 847 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657 |
| 848 "-Qunused-arguments", # http://crbug.com/504658 | 848 "-Qunused-arguments", # http://crbug.com/504658 |
| 849 "-Wno-microsoft", # http://crbug.com/505296 | 849 "-Wno-microsoft", # http://crbug.com/505296 |
| 850 "-Wno-switch", # http://crbug.com/505308 | 850 "-Wno-switch", # http://crbug.com/505308 |
| 851 "-Wno-unknown-pragmas", # http://crbug.com/505314 | 851 "-Wno-unknown-pragmas", # http://crbug.com/505314 |
| 852 "-Wno-unused-function", # http://crbug.com/505316 | |
| 853 "-Wno-unused-value", # http://crbug.com/505318 | 852 "-Wno-unused-value", # http://crbug.com/505318 |
| 854 ] | 853 ] |
| 855 } | 854 } |
| 856 } else { | 855 } else { |
| 857 # Common GCC warning setup. | 856 # Common GCC warning setup. |
| 858 default_warning_flags += [ | 857 default_warning_flags += [ |
| 859 # Enables. | 858 # Enables. |
| 860 "-Wendif-labels", # Weird old-style text after an #endif. | 859 "-Wendif-labels", # Weird old-style text after an #endif. |
| 861 "-Werror", # Warnings as errors. | 860 "-Werror", # Warnings as errors. |
| 862 | 861 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 # does not have this flag yet. | 1034 # does not have this flag yet. |
| 1036 cflags += [ "-Wno-unused-result" ] | 1035 cflags += [ "-Wno-unused-result" ] |
| 1037 } | 1036 } |
| 1038 | 1037 |
| 1039 if (is_clang) { | 1038 if (is_clang) { |
| 1040 cflags += [ | 1039 cflags += [ |
| 1041 # TODO(mgiuca): Move this suppression into individual third-party | 1040 # TODO(mgiuca): Move this suppression into individual third-party |
| 1042 # libraries as required. http://crbug.com/505301. | 1041 # libraries as required. http://crbug.com/505301. |
| 1043 "-Wno-overloaded-virtual", | 1042 "-Wno-overloaded-virtual", |
| 1044 | 1043 |
| 1044 # TODO(thakis): Move this suppression into individual third-party |
| 1045 # libraries as required. http://crbug.com/505316. |
| 1046 "-Wno-unused-function", |
| 1047 |
| 1045 # Lots of third-party libraries have unused variables. Instead of | 1048 # Lots of third-party libraries have unused variables. Instead of |
| 1046 # suppressing them individually, we just blanket suppress them here. | 1049 # suppressing them individually, we just blanket suppress them here. |
| 1047 "-Wno-unused-variable", | 1050 "-Wno-unused-variable", |
| 1048 ] | 1051 ] |
| 1049 } | 1052 } |
| 1050 | 1053 |
| 1051 if (is_linux || is_android) { | 1054 if (is_linux || is_android) { |
| 1052 cflags += [ | 1055 cflags += [ |
| 1053 # Don't warn about printf format problems. This is off by default in gcc | 1056 # Don't warn about printf format problems. This is off by default in gcc |
| 1054 # but on in Ubuntu's gcc(!). | 1057 # but on in Ubuntu's gcc(!). |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 cflags += [ "-gsplit-dwarf" ] | 1319 cflags += [ "-gsplit-dwarf" ] |
| 1317 } | 1320 } |
| 1318 } | 1321 } |
| 1319 } | 1322 } |
| 1320 | 1323 |
| 1321 config("no_symbols") { | 1324 config("no_symbols") { |
| 1322 if (!is_win) { | 1325 if (!is_win) { |
| 1323 cflags = [ "-g0" ] | 1326 cflags = [ "-g0" ] |
| 1324 } | 1327 } |
| 1325 } | 1328 } |
| OLD | NEW |