| 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 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 # http://crbug.com/255186 | 987 # http://crbug.com/255186 |
| 988 "-Wno-deprecated-register", | 988 "-Wno-deprecated-register", |
| 989 | 989 |
| 990 # TODO(thakis): This used to be implied by -Wno-unused-function, | 990 # TODO(thakis): This used to be implied by -Wno-unused-function, |
| 991 # which we no longer use. Check if it makes sense to remove | 991 # which we no longer use. Check if it makes sense to remove |
| 992 # this as well. http://crbug.com/316352 | 992 # this as well. http://crbug.com/316352 |
| 993 "-Wno-unneeded-internal-declaration", | 993 "-Wno-unneeded-internal-declaration", |
| 994 | 994 |
| 995 # TODO(hans): Get this cleaned up, http://crbug.com/428099 | 995 # TODO(hans): Get this cleaned up, http://crbug.com/428099 |
| 996 "-Wno-inconsistent-missing-override", | 996 "-Wno-inconsistent-missing-override", |
| 997 |
| 998 # TODO(eugenis): Clean up, http://crbug.com/619640 |
| 999 "-Wno-address-of-packed-member", |
| 997 ] | 1000 ] |
| 998 | 1001 |
| 999 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost | 1002 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost |
| 1000 # always have different versions. Certain flags may not be recognized by | 1003 # always have different versions. Certain flags may not be recognized by |
| 1001 # one version or the other. | 1004 # one version or the other. |
| 1002 if (!is_nacl) { | 1005 if (!is_nacl) { |
| 1003 # Flags NaCl (Clang 3.7) does not recognize. | 1006 # Flags NaCl (Clang 3.7) does not recognize. |
| 1004 cflags += [ | 1007 cflags += [ |
| 1005 # TODO(thakis): Enable this, crbug.com/507717 | 1008 # TODO(thakis): Enable this, crbug.com/507717 |
| 1006 "-Wno-shift-negative-value", | 1009 "-Wno-shift-negative-value", |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1483 | 1486 |
| 1484 if (is_ios || is_mac) { | 1487 if (is_ios || is_mac) { |
| 1485 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1488 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1486 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1489 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1487 config("enable_arc") { | 1490 config("enable_arc") { |
| 1488 common_flags = [ "-fobjc-arc" ] | 1491 common_flags = [ "-fobjc-arc" ] |
| 1489 cflags_objc = common_flags | 1492 cflags_objc = common_flags |
| 1490 cflags_objcc = common_flags | 1493 cflags_objcc = common_flags |
| 1491 } | 1494 } |
| 1492 } | 1495 } |
| OLD | NEW |