| 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 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 cflags += [ | 1029 cflags += [ |
| 1030 # TODO(thakis): https://crbug.com/604888 | 1030 # TODO(thakis): https://crbug.com/604888 |
| 1031 "-Wno-undefined-var-template", | 1031 "-Wno-undefined-var-template", |
| 1032 | 1032 |
| 1033 # TODO(thakis): https://crbug.com/617318 | 1033 # TODO(thakis): https://crbug.com/617318 |
| 1034 "-Wno-nonportable-include-path", | 1034 "-Wno-nonportable-include-path", |
| 1035 | 1035 |
| 1036 # TODO(hans): https://crbug.com/637306 | 1036 # TODO(hans): https://crbug.com/637306 |
| 1037 "-Wno-address-of-packed-member", | 1037 "-Wno-address-of-packed-member", |
| 1038 ] | 1038 ] |
| 1039 if (llvm_force_head_revision) { |
| 1040 cflags += [ |
| 1041 # TODO(hans): https://crbug.com/666144 |
| 1042 "-Wno-signed-enum-bitfield", |
| 1043 ] |
| 1044 } |
| 1039 } | 1045 } |
| 1040 } | 1046 } |
| 1041 } | 1047 } |
| 1042 | 1048 |
| 1043 # chromium_code --------------------------------------------------------------- | 1049 # chromium_code --------------------------------------------------------------- |
| 1044 # | 1050 # |
| 1045 # Toggles between higher and lower warnings for code that is (or isn't) | 1051 # Toggles between higher and lower warnings for code that is (or isn't) |
| 1046 # part of Chromium. | 1052 # part of Chromium. |
| 1047 | 1053 |
| 1048 config("chromium_code") { | 1054 config("chromium_code") { |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1607 | 1613 |
| 1608 if (is_ios || is_mac) { | 1614 if (is_ios || is_mac) { |
| 1609 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1615 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1610 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1616 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1611 config("enable_arc") { | 1617 config("enable_arc") { |
| 1612 common_flags = [ "-fobjc-arc" ] | 1618 common_flags = [ "-fobjc-arc" ] |
| 1613 cflags_objc = common_flags | 1619 cflags_objc = common_flags |
| 1614 cflags_objcc = common_flags | 1620 cflags_objcc = common_flags |
| 1615 } | 1621 } |
| 1616 } | 1622 } |
| OLD | NEW |