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

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

Issue 2884353004: fuchsia: base_unittests (mostly) compiling (Closed)
Patch Set: . Created 3 years, 7 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
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/chromecast_build.gni") 7 import("//build/config/chromecast_build.gni")
8 import("//build/config/compiler/compiler.gni") 8 import("//build/config/compiler/compiler.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 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 1084
1085 # TODO(thakis): This used to be implied by -Wno-unused-function, 1085 # TODO(thakis): This used to be implied by -Wno-unused-function,
1086 # which we no longer use. Check if it makes sense to remove 1086 # which we no longer use. Check if it makes sense to remove
1087 # this as well. http://crbug.com/316352 1087 # this as well. http://crbug.com/316352
1088 "-Wno-unneeded-internal-declaration", 1088 "-Wno-unneeded-internal-declaration",
1089 1089
1090 # TODO(hans): Get this cleaned up, http://crbug.com/428099 1090 # TODO(hans): Get this cleaned up, http://crbug.com/428099
1091 "-Wno-inconsistent-missing-override", 1091 "-Wno-inconsistent-missing-override",
1092 ] 1092 ]
1093 1093
1094 if (is_linux && target_cpu == "x86") { 1094 if ((is_linux && target_cpu == "x86") || is_fuchsia) {
Nico 2017/05/17 15:52:54 1.) If this happens only in ICU, we should suppres
scottmg 2017/05/17 16:52:51 Hmm, #2 is a good question... here's the command l
1095 cflags += [ 1095 cflags += [
1096 # TODO(thakis): Remove from 32-bit Linux eventually, https://707084 1096 # TODO(thakis): Remove from 32-bit Linux eventually, https://707084
1097 "-Wno-deprecated-register", 1097 "-Wno-deprecated-register",
1098 ] 1098 ]
1099 } 1099 }
1100 1100
1101 # use_xcode_clang only refers to the iOS toolchain, host binaries use 1101 # use_xcode_clang only refers to the iOS toolchain, host binaries use
1102 # chromium's clang always. 1102 # chromium's clang always.
1103 if (!is_nacl && (!use_xcode_clang || current_toolchain == host_toolchain)) { 1103 if (!is_nacl && (!use_xcode_clang || current_toolchain == host_toolchain)) {
1104 # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not 1104 # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
1752 1752
1753 if (is_ios || is_mac) { 1753 if (is_ios || is_mac) {
1754 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1754 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1755 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1755 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1756 config("enable_arc") { 1756 config("enable_arc") {
1757 common_flags = [ "-fobjc-arc" ] 1757 common_flags = [ "-fobjc-arc" ]
1758 cflags_objc = common_flags 1758 cflags_objc = common_flags
1759 cflags_objcc = common_flags 1759 cflags_objcc = common_flags
1760 } 1760 }
1761 } 1761 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698