Chromium Code Reviews| 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/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
| 10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
| (...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 960 | 960 |
| 961 # Don't warn about "maybe" uninitialized. Clang doesn't include this | 961 # Don't warn about "maybe" uninitialized. Clang doesn't include this |
| 962 # in -Wall but gcc does, and it gives false positives. | 962 # in -Wall but gcc does, and it gives false positives. |
| 963 cflags += [ "-Wno-maybe-uninitialized" ] | 963 cflags += [ "-Wno-maybe-uninitialized" ] |
| 964 } | 964 } |
| 965 } | 965 } |
| 966 | 966 |
| 967 # Common Clang and GCC warning setup. | 967 # Common Clang and GCC warning setup. |
| 968 if (!is_win || is_clang) { | 968 if (!is_win || is_clang) { |
| 969 cflags += [ | 969 cflags += [ |
| 970 # Disable __DATE__ and __TIME__ to help make builds deterministic. | |
|
Nico
2016/08/25 19:20:03
Maybe add a note along the lines of "If this fires
| |
| 971 "-Wdate-time", | |
| 972 | |
| 970 # Disables. | 973 # Disables. |
| 971 "-Wno-missing-field-initializers", # "struct foo f = {0};" | 974 "-Wno-missing-field-initializers", # "struct foo f = {0};" |
| 972 "-Wno-unused-parameter", # Unused function parameters. | 975 "-Wno-unused-parameter", # Unused function parameters. |
| 973 ] | 976 ] |
| 974 } | 977 } |
| 975 | 978 |
| 976 if (is_chromeos) { | 979 if (is_chromeos) { |
| 977 # TODO(thakis): Remove, http://crbug.com/263960 | 980 # TODO(thakis): Remove, http://crbug.com/263960 |
| 978 if (is_clang) { | 981 if (is_clang) { |
| 979 cflags_cc += [ "-Wno-reserved-user-defined-literal" ] | 982 cflags_cc += [ "-Wno-reserved-user-defined-literal" ] |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1581 | 1584 |
| 1582 if (is_ios || is_mac) { | 1585 if (is_ios || is_mac) { |
| 1583 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1586 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1584 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1587 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1585 config("enable_arc") { | 1588 config("enable_arc") { |
| 1586 common_flags = [ "-fobjc-arc" ] | 1589 common_flags = [ "-fobjc-arc" ] |
| 1587 cflags_objc = common_flags | 1590 cflags_objc = common_flags |
| 1588 cflags_objcc = common_flags | 1591 cflags_objcc = common_flags |
| 1589 } | 1592 } |
| 1590 } | 1593 } |
| OLD | NEW |