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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 # Keep this in sync with the similar block in build/common.gypi | 796 # Keep this in sync with the similar block in build/common.gypi |
797 if (is_clang) { | 797 if (is_clang) { |
798 default_warning_flags += [ | 798 default_warning_flags += [ |
799 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657 | 799 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657 |
800 "-Qunused-arguments", # http://crbug.com/504658 | 800 "-Qunused-arguments", # http://crbug.com/504658 |
801 "-Wno-microsoft", # http://crbug.com/505296 | 801 "-Wno-microsoft", # http://crbug.com/505296 |
802 "-Wno-switch", # http://crbug.com/505308 | 802 "-Wno-switch", # http://crbug.com/505308 |
803 "-Wno-unknown-pragmas", # http://crbug.com/505314 | 803 "-Wno-unknown-pragmas", # http://crbug.com/505314 |
804 "-Wno-unused-function", # http://crbug.com/505316 | 804 "-Wno-unused-function", # http://crbug.com/505316 |
805 "-Wno-unused-value", # http://crbug.com/505318 | 805 "-Wno-unused-value", # http://crbug.com/505318 |
806 "-Wno-unused-local-typedef", # http://crbug.com/411648 | |
807 ] | 806 ] |
808 } | 807 } |
809 } else { | 808 } else { |
810 # Common GCC warning setup. | 809 # Common GCC warning setup. |
811 default_warning_flags += [ | 810 default_warning_flags += [ |
812 # Enables. | 811 # Enables. |
813 "-Wendif-labels", # Weird old-style text after an #endif. | 812 "-Wendif-labels", # Weird old-style text after an #endif. |
814 "-Werror", # Warnings as errors. | 813 "-Werror", # Warnings as errors. |
815 | 814 |
816 # Disables. | 815 # Disables. |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1251 cflags += [ "-gsplit-dwarf" ] | 1250 cflags += [ "-gsplit-dwarf" ] |
1252 } | 1251 } |
1253 } | 1252 } |
1254 } | 1253 } |
1255 | 1254 |
1256 config("no_symbols") { | 1255 config("no_symbols") { |
1257 if (!is_win) { | 1256 if (!is_win) { |
1258 cflags = [ "-g0" ] | 1257 cflags = [ "-g0" ] |
1259 } | 1258 } |
1260 } | 1259 } |
OLD | NEW |