Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 2079283002: [iOS/GN] Allow compilation with system clang. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/clang/clang.gni ('k') | build/config/ios/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 1000
1001 # TODO(thakis): This used to be implied by -Wno-unused-function, 1001 # TODO(thakis): This used to be implied by -Wno-unused-function,
1002 # which we no longer use. Check if it makes sense to remove 1002 # which we no longer use. Check if it makes sense to remove
1003 # this as well. http://crbug.com/316352 1003 # this as well. http://crbug.com/316352
1004 "-Wno-unneeded-internal-declaration", 1004 "-Wno-unneeded-internal-declaration",
1005 1005
1006 # TODO(hans): Get this cleaned up, http://crbug.com/428099 1006 # TODO(hans): Get this cleaned up, http://crbug.com/428099
1007 "-Wno-inconsistent-missing-override", 1007 "-Wno-inconsistent-missing-override",
1008 ] 1008 ]
1009 1009
1010 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost 1010 # Chrome's hermetic Clang compiler, NaCl's Clang compiler and Xcode's Clang
1011 # always have different versions. Certain flags may not be recognized by 1011 # compiler will almost always have different versions. Certain flags may not
1012 # one version or the other. 1012 # be recognized by one version or the other.
1013 if (!is_nacl) { 1013 if (!is_nacl) {
1014 # Flags NaCl (Clang 3.7) does not recognize. 1014 # Flags NaCl (Clang 3.7) does not recognize.
1015 cflags += [ 1015 cflags += [
1016 # TODO(thakis): Enable this, crbug.com/507717 1016 # TODO(thakis): Enable this, crbug.com/507717
1017 "-Wno-shift-negative-value", 1017 "-Wno-shift-negative-value",
1018
1019 # TODO(thakis): https://crbug.com/604888
1020 "-Wno-undefined-var-template",
1021 ] 1018 ]
1022 1019
1023 if (llvm_force_head_revision) { 1020 if (llvm_force_head_revision) {
1024 cflags += [ 1021 cflags += [
1025 # TODO(thakis): https://crbug.com/617318 1022 # TODO(thakis): https://crbug.com/617318
1026 "-Wno-nonportable-include-path", 1023 "-Wno-nonportable-include-path",
1027 ] 1024 ]
1028 } 1025 }
1029 } 1026 }
1027 if (!is_nacl && !use_xcode_clang) {
1028 # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not
1029 # recognize.
1030 cflags += [
1031 # TODO(thakis): https://crbug.com/604888
1032 "-Wno-undefined-var-template",
1033 ]
1034 }
1030 } 1035 }
1031 } 1036 }
1032 1037
1033 # chromium_code --------------------------------------------------------------- 1038 # chromium_code ---------------------------------------------------------------
1034 # 1039 #
1035 # Toggles between higher and lower warnings for code that is (or isn't) 1040 # Toggles between higher and lower warnings for code that is (or isn't)
1036 # part of Chromium. 1041 # part of Chromium.
1037 1042
1038 config("chromium_code") { 1043 config("chromium_code") {
1039 if (is_win) { 1044 if (is_win) {
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
1544 1549
1545 if (is_ios || is_mac) { 1550 if (is_ios || is_mac) {
1546 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1551 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1547 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1552 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1548 config("enable_arc") { 1553 config("enable_arc") {
1549 common_flags = [ "-fobjc-arc" ] 1554 common_flags = [ "-fobjc-arc" ]
1550 cflags_objc = common_flags 1555 cflags_objc = common_flags
1551 cflags_objcc = common_flags 1556 cflags_objcc = common_flags
1552 } 1557 }
1553 } 1558 }
OLDNEW
« no previous file with comments | « build/config/clang/clang.gni ('k') | build/config/ios/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698