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 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
9 import("//build/toolchain/ccache.gni") | 9 import("//build/toolchain/ccache.gni") |
10 | 10 |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 defines += [ | 939 defines += [ |
940 "_CRT_NONSTDC_NO_WARNINGS", | 940 "_CRT_NONSTDC_NO_WARNINGS", |
941 "_CRT_NONSTDC_NO_DEPRECATE", | 941 "_CRT_NONSTDC_NO_DEPRECATE", |
942 ] | 942 ] |
943 } else if (is_clang && !is_nacl) { | 943 } else if (is_clang && !is_nacl) { |
944 # TODO(thakis): Remove !is_nacl once | 944 # TODO(thakis): Remove !is_nacl once |
945 # https://codereview.webrtc.org/1552863002/ made its way into chromium. | 945 # https://codereview.webrtc.org/1552863002/ made its way into chromium. |
946 cflags += [ "-Wall" ] | 946 cflags += [ "-Wall" ] |
947 } | 947 } |
948 | 948 |
949 if (is_linux) { | |
950 # Don't warn about ignoring the return value from e.g. close(). This is | |
951 # off by default in some gccs but on by default in others. BSD systems do | |
952 # not support this option, since they are usually using gcc 4.2.1, which | |
953 # does not have this flag yet. | |
954 cflags += [ "-Wno-unused-result" ] | |
955 } | |
956 | |
957 if (is_clang) { | 949 if (is_clang) { |
958 cflags += [ | 950 cflags += [ |
959 # Lots of third-party libraries have unused variables. Instead of | 951 # Lots of third-party libraries have unused variables. Instead of |
960 # suppressing them individually, we just blanket suppress them here. | 952 # suppressing them individually, we just blanket suppress them here. |
961 "-Wno-unused-variable", | 953 "-Wno-unused-variable", |
962 ] | 954 ] |
963 } | 955 } |
964 | 956 |
965 if (is_linux || is_android) { | 957 if (is_linux || is_android) { |
966 cflags += [ | 958 cflags += [ |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1307 if (symbol_level == 0) { | 1299 if (symbol_level == 0) { |
1308 configs = [ ":no_symbols" ] | 1300 configs = [ ":no_symbols" ] |
1309 } else if (symbol_level == 1) { | 1301 } else if (symbol_level == 1) { |
1310 configs = [ ":minimal_symbols" ] | 1302 configs = [ ":minimal_symbols" ] |
1311 } else if (symbol_level == 2) { | 1303 } else if (symbol_level == 2) { |
1312 configs = [ ":symbols" ] | 1304 configs = [ ":symbols" ] |
1313 } else { | 1305 } else { |
1314 assert(false) | 1306 assert(false) |
1315 } | 1307 } |
1316 } | 1308 } |
OLD | NEW |