| 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 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 | 952 |
| 953 # Clang considers the `register` keyword as deprecated, but e.g. | 953 # Clang considers the `register` keyword as deprecated, but e.g. |
| 954 # code generated by flex (used in angle) contains that keyword. | 954 # code generated by flex (used in angle) contains that keyword. |
| 955 # http://crbug.com/255186 | 955 # http://crbug.com/255186 |
| 956 "-Wno-deprecated-register", | 956 "-Wno-deprecated-register", |
| 957 | 957 |
| 958 # TODO(thakis): This used to be implied by -Wno-unused-function, | 958 # TODO(thakis): This used to be implied by -Wno-unused-function, |
| 959 # which we no longer use. Check if it makes sense to remove | 959 # which we no longer use. Check if it makes sense to remove |
| 960 # this as well. http://crbug.com/316352 | 960 # this as well. http://crbug.com/316352 |
| 961 "-Wno-unneeded-internal-declaration", | 961 "-Wno-unneeded-internal-declaration", |
| 962 ] |
| 962 | 963 |
| 963 # TODO(thakis): Remove, http://crbug.com/263960 | 964 if (is_posix && !is_mac && !is_ios) { |
| 964 "-Wno-reserved-user-defined-literal", | 965 default_warning_flags += [ |
| 965 ] | 966 # TODO(thakis): Remove, http://crbug.com/263960 |
| 967 "-Wno-reserved-user-defined-literal", |
| 968 ] |
| 969 } |
| 966 | 970 |
| 967 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost | 971 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost |
| 968 # always have different versions. Certain flags may not be recognized by | 972 # always have different versions. Certain flags may not be recognized by |
| 969 # one version or the other. | 973 # one version or the other. |
| 970 if (!is_nacl) { | 974 if (!is_nacl) { |
| 971 # Flags NaCl does not recognize. | 975 # Flags NaCl does not recognize. |
| 972 default_warning_flags += [ | 976 default_warning_flags += [ |
| 973 # TODO(hans): Get this cleaned up, http://crbug.com/428099 | 977 # TODO(hans): Get this cleaned up, http://crbug.com/428099 |
| 974 "-Wno-inconsistent-missing-override", | 978 "-Wno-inconsistent-missing-override", |
| 975 | 979 |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1331 cflags += [ "-gsplit-dwarf" ] | 1335 cflags += [ "-gsplit-dwarf" ] |
| 1332 } | 1336 } |
| 1333 } | 1337 } |
| 1334 } | 1338 } |
| 1335 | 1339 |
| 1336 config("no_symbols") { | 1340 config("no_symbols") { |
| 1337 if (!is_win) { | 1341 if (!is_win) { |
| 1338 cflags = [ "-g0" ] | 1342 cflags = [ "-g0" ] |
| 1339 } | 1343 } |
| 1340 } | 1344 } |
| OLD | NEW |