| 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 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1077     # Chrome's hermetic Clang compiler, NaCl's Clang compiler and Xcode's Clang | 1077     # Chrome's hermetic Clang compiler, NaCl's Clang compiler and Xcode's Clang | 
| 1078     # compiler will almost always have different versions. Certain flags may not | 1078     # compiler will almost always have different versions. Certain flags may not | 
| 1079     # be recognized by one version or the other. | 1079     # be recognized by one version or the other. | 
| 1080     if (!is_nacl) { | 1080     if (!is_nacl) { | 
| 1081       # Flags NaCl (Clang 3.7) does not recognize. | 1081       # Flags NaCl (Clang 3.7) does not recognize. | 
| 1082       cflags += [ | 1082       cflags += [ | 
| 1083         # TODO(thakis): Enable this, crbug.com/507717 | 1083         # TODO(thakis): Enable this, crbug.com/507717 | 
| 1084         "-Wno-shift-negative-value", | 1084         "-Wno-shift-negative-value", | 
| 1085       ] | 1085       ] | 
| 1086     } | 1086     } | 
| 1087     if (!is_nacl && !use_xcode_clang) { | 1087 | 
|  | 1088     # use_xcode_clang only refers to the iOS toolchain, host binaries use | 
|  | 1089     # chromium's clang always. | 
|  | 1090     if (!is_nacl && (!use_xcode_clang || current_toolchain == host_toolchain)) { | 
| 1088       # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not | 1091       # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not | 
| 1089       # recognize. | 1092       # recognize. | 
| 1090       cflags += [ | 1093       cflags += [ | 
| 1091         # TODO(thakis): https://crbug.com/604888 | 1094         # TODO(thakis): https://crbug.com/604888 | 
| 1092         "-Wno-undefined-var-template", | 1095         "-Wno-undefined-var-template", | 
| 1093 | 1096 | 
| 1094         # TODO(thakis): https://crbug.com/617318 | 1097         # TODO(thakis): https://crbug.com/617318 | 
| 1095         "-Wno-nonportable-include-path", | 1098         "-Wno-nonportable-include-path", | 
| 1096 | 1099 | 
| 1097         # TODO(hans): https://crbug.com/637306 | 1100         # TODO(hans): https://crbug.com/637306 | 
| 1098         "-Wno-address-of-packed-member", | 1101         "-Wno-address-of-packed-member", | 
| 1099 | 1102 | 
| 1100         # TODO(thakis): Consider turning this on, https://crbug.com/691120 | 1103         # TODO(thakis): Consider turning this on, https://crbug.com/691120 | 
| 1101         "-Wno-block-capture-autoreleasing", | 1104         "-Wno-block-capture-autoreleasing", | 
|  | 1105 | 
|  | 1106         # TODO(hans): https://crbug.com/681136 | 
|  | 1107         "-Wno-unused-lambda-capture", | 
|  | 1108 | 
|  | 1109         # TODO(thakis ): https://crbug.com/683349 | 
|  | 1110         "-Wno-user-defined-warnings", | 
| 1102       ] | 1111       ] | 
| 1103       if (llvm_force_head_revision) { |  | 
| 1104         cflags += [ |  | 
| 1105           # TODO(hans): https://crbug.com/681136 |  | 
| 1106           "-Wno-unused-lambda-capture", |  | 
| 1107 |  | 
| 1108           # TODO(thakis ): https://crbug.com/683349 |  | 
| 1109           "-Wno-user-defined-warnings", |  | 
| 1110         ] |  | 
| 1111       } |  | 
| 1112     } | 1112     } | 
| 1113   } | 1113   } | 
| 1114 } | 1114 } | 
| 1115 | 1115 | 
| 1116 # chromium_code --------------------------------------------------------------- | 1116 # chromium_code --------------------------------------------------------------- | 
| 1117 # | 1117 # | 
| 1118 # Toggles between higher and lower warnings for code that is (or isn't) | 1118 # Toggles between higher and lower warnings for code that is (or isn't) | 
| 1119 # part of Chromium. | 1119 # part of Chromium. | 
| 1120 | 1120 | 
| 1121 config("chromium_code") { | 1121 config("chromium_code") { | 
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1706 | 1706 | 
| 1707 if (is_ios || is_mac) { | 1707 if (is_ios || is_mac) { | 
| 1708   # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1708   # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 
| 1709   # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1709   # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 
| 1710   config("enable_arc") { | 1710   config("enable_arc") { | 
| 1711     common_flags = [ "-fobjc-arc" ] | 1711     common_flags = [ "-fobjc-arc" ] | 
| 1712     cflags_objc = common_flags | 1712     cflags_objc = common_flags | 
| 1713     cflags_objcc = common_flags | 1713     cflags_objcc = common_flags | 
| 1714   } | 1714   } | 
| 1715 } | 1715 } | 
| OLD | NEW | 
|---|