| 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 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 | 952 |
| 953 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost | 953 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost |
| 954 # always have different versions. Certain flags may not be recognized by | 954 # always have different versions. Certain flags may not be recognized by |
| 955 # one version or the other. | 955 # one version or the other. |
| 956 if (!is_nacl) { | 956 if (!is_nacl) { |
| 957 # Flags NaCl (Clang 3.7) does not recognize. | 957 # Flags NaCl (Clang 3.7) does not recognize. |
| 958 cflags += [ | 958 cflags += [ |
| 959 # TODO(thakis): Enable this, crbug.com/507717 | 959 # TODO(thakis): Enable this, crbug.com/507717 |
| 960 "-Wno-shift-negative-value", | 960 "-Wno-shift-negative-value", |
| 961 ] | 961 ] |
| 962 |
| 963 if (exec_script("//tools/clang/scripts/update.py", |
| 964 [ "--print-revision" ], |
| 965 "trim string") != "266460-1") { |
| 966 cflags += [ |
| 967 # TODO(thakis): https://crbug.com/604888 |
| 968 "-Wno-undefined-var-template", |
| 969 ] |
| 970 } |
| 962 } | 971 } |
| 963 } | 972 } |
| 964 } | 973 } |
| 965 | 974 |
| 966 # chromium_code --------------------------------------------------------------- | 975 # chromium_code --------------------------------------------------------------- |
| 967 # | 976 # |
| 968 # Toggles between higher and lower warnings for code that is (or isn't) | 977 # Toggles between higher and lower warnings for code that is (or isn't) |
| 969 # part of Chromium. | 978 # part of Chromium. |
| 970 | 979 |
| 971 config("chromium_code") { | 980 config("chromium_code") { |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1404 | 1413 |
| 1405 if (is_ios || is_mac) { | 1414 if (is_ios || is_mac) { |
| 1406 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1415 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1407 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1416 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1408 config("enable_arc") { | 1417 config("enable_arc") { |
| 1409 common_flags = [ "-fobjc-arc" ] | 1418 common_flags = [ "-fobjc-arc" ] |
| 1410 cflags_objc = common_flags | 1419 cflags_objc = common_flags |
| 1411 cflags_objcc = common_flags | 1420 cflags_objcc = common_flags |
| 1412 } | 1421 } |
| 1413 } | 1422 } |
| OLD | NEW |