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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 | 998 |
999 # Chrome's hermetic Clang compiler, NaCl's Clang compiler and Xcode's Clang | 999 # Chrome's hermetic Clang compiler, NaCl's Clang compiler and Xcode's Clang |
1000 # compiler will almost always have different versions. Certain flags may not | 1000 # compiler will almost always have different versions. Certain flags may not |
1001 # be recognized by one version or the other. | 1001 # be recognized by one version or the other. |
1002 if (!is_nacl) { | 1002 if (!is_nacl) { |
1003 # Flags NaCl (Clang 3.7) does not recognize. | 1003 # Flags NaCl (Clang 3.7) does not recognize. |
1004 cflags += [ | 1004 cflags += [ |
1005 # TODO(thakis): Enable this, crbug.com/507717 | 1005 # TODO(thakis): Enable this, crbug.com/507717 |
1006 "-Wno-shift-negative-value", | 1006 "-Wno-shift-negative-value", |
1007 ] | 1007 ] |
1008 | |
1009 if (llvm_force_head_revision) { | |
1010 cflags += [ | |
1011 # TODO(thakis): https://crbug.com/617318 | |
1012 "-Wno-nonportable-include-path", | |
1013 ] | |
1014 } | |
1015 } | 1008 } |
1016 if (!is_nacl && !use_xcode_clang) { | 1009 if (!is_nacl && !use_xcode_clang) { |
1017 # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not | 1010 # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not |
1018 # recognize. | 1011 # recognize. |
1019 cflags += [ | 1012 cflags += [ |
1020 # TODO(thakis): https://crbug.com/604888 | 1013 # TODO(thakis): https://crbug.com/604888 |
1021 "-Wno-undefined-var-template", | 1014 "-Wno-undefined-var-template", |
| 1015 |
| 1016 # TODO(thakis): https://crbug.com/617318 |
| 1017 "-Wno-nonportable-include-path", |
1022 ] | 1018 ] |
1023 } | 1019 } |
1024 } | 1020 } |
1025 } | 1021 } |
1026 | 1022 |
1027 # chromium_code --------------------------------------------------------------- | 1023 # chromium_code --------------------------------------------------------------- |
1028 # | 1024 # |
1029 # Toggles between higher and lower warnings for code that is (or isn't) | 1025 # Toggles between higher and lower warnings for code that is (or isn't) |
1030 # part of Chromium. | 1026 # part of Chromium. |
1031 | 1027 |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1548 | 1544 |
1549 if (is_ios || is_mac) { | 1545 if (is_ios || is_mac) { |
1550 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1546 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1551 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1547 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1552 config("enable_arc") { | 1548 config("enable_arc") { |
1553 common_flags = [ "-fobjc-arc" ] | 1549 common_flags = [ "-fobjc-arc" ] |
1554 cflags_objc = common_flags | 1550 cflags_objc = common_flags |
1555 cflags_objcc = common_flags | 1551 cflags_objcc = common_flags |
1556 } | 1552 } |
1557 } | 1553 } |
OLD | NEW |