| 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 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ] | 1017 ] |
| 1018 if (llvm_force_head_revision) { |
| 1019 cflags += [ |
| 1020 # TODO(hans): https://crbug.com/637306 |
| 1021 "-Wno-address-of-packed-member", |
| 1022 ] |
| 1023 } |
| 1018 } | 1024 } |
| 1019 } | 1025 } |
| 1020 } | 1026 } |
| 1021 | 1027 |
| 1022 # chromium_code --------------------------------------------------------------- | 1028 # chromium_code --------------------------------------------------------------- |
| 1023 # | 1029 # |
| 1024 # 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) |
| 1025 # part of Chromium. | 1031 # part of Chromium. |
| 1026 | 1032 |
| 1027 config("chromium_code") { | 1033 config("chromium_code") { |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1562 | 1568 |
| 1563 if (is_ios || is_mac) { | 1569 if (is_ios || is_mac) { |
| 1564 # 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). |
| 1565 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1571 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1566 config("enable_arc") { | 1572 config("enable_arc") { |
| 1567 common_flags = [ "-fobjc-arc" ] | 1573 common_flags = [ "-fobjc-arc" ] |
| 1568 cflags_objc = common_flags | 1574 cflags_objc = common_flags |
| 1569 cflags_objcc = common_flags | 1575 cflags_objcc = common_flags |
| 1570 } | 1576 } |
| 1571 } | 1577 } |
| OLD | NEW |