| 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/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
| 8 import("//build/config/compiler/compiler.gni") | 8 import("//build/config/compiler/compiler.gni") |
| 9 import("//build/toolchain/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
| 10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
| (...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1201 } | 1201 } |
| 1202 | 1202 |
| 1203 if (is_clang) { | 1203 if (is_clang) { |
| 1204 cflags += [ | 1204 cflags += [ |
| 1205 # Lots of third-party libraries have unused variables. Instead of | 1205 # Lots of third-party libraries have unused variables. Instead of |
| 1206 # suppressing them individually, we just blanket suppress them here. | 1206 # suppressing them individually, we just blanket suppress them here. |
| 1207 "-Wno-unused-variable", | 1207 "-Wno-unused-variable", |
| 1208 ] | 1208 ] |
| 1209 } | 1209 } |
| 1210 | 1210 |
| 1211 if (is_linux || is_android) { | |
| 1212 cflags_cc += [ | |
| 1213 # Don't warn about hash_map in third-party code. | |
| 1214 "-Wno-deprecated", | |
| 1215 ] | |
| 1216 } | |
| 1217 | |
| 1218 configs = [ ":default_warnings" ] | 1211 configs = [ ":default_warnings" ] |
| 1219 } | 1212 } |
| 1220 | 1213 |
| 1221 # rtti ------------------------------------------------------------------------ | 1214 # rtti ------------------------------------------------------------------------ |
| 1222 # | 1215 # |
| 1223 # Allows turning Run-Time Type Identification on or off. | 1216 # Allows turning Run-Time Type Identification on or off. |
| 1224 | 1217 |
| 1225 config("rtti") { | 1218 config("rtti") { |
| 1226 if (is_win) { | 1219 if (is_win) { |
| 1227 cflags_cc = [ "/GR" ] | 1220 cflags_cc = [ "/GR" ] |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1734 | 1727 |
| 1735 if (is_ios || is_mac) { | 1728 if (is_ios || is_mac) { |
| 1736 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1729 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1737 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1730 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1738 config("enable_arc") { | 1731 config("enable_arc") { |
| 1739 common_flags = [ "-fobjc-arc" ] | 1732 common_flags = [ "-fobjc-arc" ] |
| 1740 cflags_objc = common_flags | 1733 cflags_objc = common_flags |
| 1741 cflags_objcc = common_flags | 1734 cflags_objcc = common_flags |
| 1742 } | 1735 } |
| 1743 } | 1736 } |
| OLD | NEW |