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 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 # one version or the other. | 1001 # 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 # TODO(thakis): https://crbug.com/604888 | 1008 # TODO(thakis): https://crbug.com/604888 |
1009 "-Wno-undefined-var-template", | 1009 "-Wno-undefined-var-template", |
1010 ] | 1010 ] |
| 1011 |
| 1012 if (llvm_force_head_revision) { |
| 1013 cflags += [ |
| 1014 # TODO(eugenis): Clean up, http://crbug.com/619640 |
| 1015 "-Wno-address-of-packed-member", |
| 1016 ] |
| 1017 } |
1011 } | 1018 } |
1012 } | 1019 } |
1013 } | 1020 } |
1014 | 1021 |
1015 # chromium_code --------------------------------------------------------------- | 1022 # chromium_code --------------------------------------------------------------- |
1016 # | 1023 # |
1017 # Toggles between higher and lower warnings for code that is (or isn't) | 1024 # Toggles between higher and lower warnings for code that is (or isn't) |
1018 # part of Chromium. | 1025 # part of Chromium. |
1019 | 1026 |
1020 config("chromium_code") { | 1027 config("chromium_code") { |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1483 | 1490 |
1484 if (is_ios || is_mac) { | 1491 if (is_ios || is_mac) { |
1485 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1492 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1486 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1493 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1487 config("enable_arc") { | 1494 config("enable_arc") { |
1488 common_flags = [ "-fobjc-arc" ] | 1495 common_flags = [ "-fobjc-arc" ] |
1489 cflags_objc = common_flags | 1496 cflags_objc = common_flags |
1490 cflags_objcc = common_flags | 1497 cflags_objcc = common_flags |
1491 } | 1498 } |
1492 } | 1499 } |
OLD | NEW |