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 # one version or the other. | 998 # one version or the other. |
999 if (!is_nacl) { | 999 if (!is_nacl) { |
1000 # Flags NaCl (Clang 3.7) does not recognize. | 1000 # Flags NaCl (Clang 3.7) does not recognize. |
1001 cflags += [ | 1001 cflags += [ |
1002 # TODO(thakis): Enable this, crbug.com/507717 | 1002 # TODO(thakis): Enable this, crbug.com/507717 |
1003 "-Wno-shift-negative-value", | 1003 "-Wno-shift-negative-value", |
1004 | 1004 |
1005 # TODO(thakis): https://crbug.com/604888 | 1005 # TODO(thakis): https://crbug.com/604888 |
1006 "-Wno-undefined-var-template", | 1006 "-Wno-undefined-var-template", |
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 } | 1009 } |
1017 } | 1010 } |
1018 | 1011 |
1019 # chromium_code --------------------------------------------------------------- | 1012 # chromium_code --------------------------------------------------------------- |
1020 # | 1013 # |
1021 # Toggles between higher and lower warnings for code that is (or isn't) | 1014 # Toggles between higher and lower warnings for code that is (or isn't) |
1022 # part of Chromium. | 1015 # part of Chromium. |
1023 | 1016 |
1024 config("chromium_code") { | 1017 config("chromium_code") { |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1487 | 1480 |
1488 if (is_ios || is_mac) { | 1481 if (is_ios || is_mac) { |
1489 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1482 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1490 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1483 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1491 config("enable_arc") { | 1484 config("enable_arc") { |
1492 common_flags = [ "-fobjc-arc" ] | 1485 common_flags = [ "-fobjc-arc" ] |
1493 cflags_objc = common_flags | 1486 cflags_objc = common_flags |
1494 cflags_objcc = common_flags | 1487 cflags_objcc = common_flags |
1495 } | 1488 } |
1496 } | 1489 } |
OLD | NEW |