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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 } | 1007 } |
1008 if (!is_nacl && !use_xcode_clang) { | 1008 if (!is_nacl && !use_xcode_clang) { |
1009 # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not | 1009 # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not |
1010 # recognize. | 1010 # recognize. |
1011 cflags += [ | 1011 cflags += [ |
1012 # TODO(thakis): https://crbug.com/604888 | 1012 # TODO(thakis): https://crbug.com/604888 |
1013 "-Wno-undefined-var-template", | 1013 "-Wno-undefined-var-template", |
1014 | 1014 |
1015 # TODO(thakis): https://crbug.com/617318 | 1015 # TODO(thakis): https://crbug.com/617318 |
1016 "-Wno-nonportable-include-path", | 1016 "-Wno-nonportable-include-path", |
1017 | |
1018 # TODO(hans): https://crbug.com/637306 | |
1019 "-Wno-address-of-packed-member", | |
1020 ] | 1017 ] |
| 1018 if (llvm_force_head_revision) { |
| 1019 cflags += [ |
| 1020 # TODO(hans): https://crbug.com/637306 |
| 1021 "-Wno-address-of-packed-member", |
| 1022 ] |
| 1023 } |
1021 } | 1024 } |
1022 } | 1025 } |
1023 } | 1026 } |
1024 | 1027 |
1025 # chromium_code --------------------------------------------------------------- | 1028 # chromium_code --------------------------------------------------------------- |
1026 # | 1029 # |
1027 # Toggles between higher and lower warnings for code that is (or isn't) | 1030 # Toggles between higher and lower warnings for code that is (or isn't) |
1028 # part of Chromium. | 1031 # part of Chromium. |
1029 | 1032 |
1030 config("chromium_code") { | 1033 config("chromium_code") { |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1565 | 1568 |
1566 if (is_ios || is_mac) { | 1569 if (is_ios || is_mac) { |
1567 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1570 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1568 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1571 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1569 config("enable_arc") { | 1572 config("enable_arc") { |
1570 common_flags = [ "-fobjc-arc" ] | 1573 common_flags = [ "-fobjc-arc" ] |
1571 cflags_objc = common_flags | 1574 cflags_objc = common_flags |
1572 cflags_objcc = common_flags | 1575 cflags_objcc = common_flags |
1573 } | 1576 } |
1574 } | 1577 } |
OLD | NEW |