| 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 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 ] | 979 ] |
| 980 | 980 |
| 981 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost | 981 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost |
| 982 # always have different versions. Certain flags may not be recognized by | 982 # always have different versions. Certain flags may not be recognized by |
| 983 # one version or the other. | 983 # one version or the other. |
| 984 if (!is_nacl) { | 984 if (!is_nacl) { |
| 985 # Flags NaCl (Clang 3.7) does not recognize. | 985 # Flags NaCl (Clang 3.7) does not recognize. |
| 986 cflags += [ | 986 cflags += [ |
| 987 # TODO(thakis): Enable this, crbug.com/507717 | 987 # TODO(thakis): Enable this, crbug.com/507717 |
| 988 "-Wno-shift-negative-value", | 988 "-Wno-shift-negative-value", |
| 989 |
| 990 # TODO(thakis): https://crbug.com/604888 |
| 991 "-Wno-undefined-var-template", |
| 989 ] | 992 ] |
| 990 | |
| 991 if (llvm_force_head_revision) { | |
| 992 cflags += [ | |
| 993 # TODO(thakis): https://crbug.com/604888 | |
| 994 "-Wno-undefined-var-template", | |
| 995 ] | |
| 996 } | |
| 997 } | 993 } |
| 998 } | 994 } |
| 999 } | 995 } |
| 1000 | 996 |
| 1001 # chromium_code --------------------------------------------------------------- | 997 # chromium_code --------------------------------------------------------------- |
| 1002 # | 998 # |
| 1003 # Toggles between higher and lower warnings for code that is (or isn't) | 999 # Toggles between higher and lower warnings for code that is (or isn't) |
| 1004 # part of Chromium. | 1000 # part of Chromium. |
| 1005 | 1001 |
| 1006 config("chromium_code") { | 1002 config("chromium_code") { |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1439 | 1435 |
| 1440 if (is_ios || is_mac) { | 1436 if (is_ios || is_mac) { |
| 1441 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1437 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1442 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1438 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1443 config("enable_arc") { | 1439 config("enable_arc") { |
| 1444 common_flags = [ "-fobjc-arc" ] | 1440 common_flags = [ "-fobjc-arc" ] |
| 1445 cflags_objc = common_flags | 1441 cflags_objc = common_flags |
| 1446 cflags_objcc = common_flags | 1442 cflags_objcc = common_flags |
| 1447 } | 1443 } |
| 1448 } | 1444 } |
| OLD | NEW |