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

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

Issue 2931983003: Move libc++ configs and flags out of //build/config/sanitizers (Closed)
Patch Set: Update installer files Created 3 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/c++/c++.gni ('k') | build/config/sanitizers/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/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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } else if (is_mac) { 174 } else if (is_mac) {
175 configs += [ "//build/config/mac:compiler" ] 175 configs += [ "//build/config/mac:compiler" ]
176 } else if (is_ios) { 176 } else if (is_ios) {
177 configs += [ "//build/config/ios:compiler" ] 177 configs += [ "//build/config/ios:compiler" ]
178 } else if (is_fuchsia) { 178 } else if (is_fuchsia) {
179 configs += [ "//build/config/fuchsia:compiler" ] 179 configs += [ "//build/config/fuchsia:compiler" ]
180 } else if (current_os == "aix") { 180 } else if (current_os == "aix") {
181 configs += [ "//build/config/aix:compiler" ] 181 configs += [ "//build/config/aix:compiler" ]
182 } 182 }
183 183
184 # See the definitions below.
185 configs += [ 184 configs += [
185 "//build/config/c++:c++flags",
186
187 # See the definitions below.
186 ":compiler_cpu_abi", 188 ":compiler_cpu_abi",
187 ":compiler_codegen", 189 ":compiler_codegen",
188 ] 190 ]
189 191
190 # In general, Windows is totally different, but all the other builds share 192 # In general, Windows is totally different, but all the other builds share
191 # some common GCC configuration. 193 # some common GCC configuration.
192 if (!is_win) { 194 if (!is_win) {
193 # Common GCC compiler flags setup. 195 # Common GCC compiler flags setup.
194 # -------------------------------- 196 # --------------------------------
195 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 197 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204
(...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1803 1805
1804 if (is_ios || is_mac) { 1806 if (is_ios || is_mac) {
1805 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1807 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1806 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1808 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1807 config("enable_arc") { 1809 config("enable_arc") {
1808 common_flags = [ "-fobjc-arc" ] 1810 common_flags = [ "-fobjc-arc" ]
1809 cflags_objc = common_flags 1811 cflags_objc = common_flags
1810 cflags_objcc = common_flags 1812 cflags_objcc = common_flags
1811 } 1813 }
1812 } 1814 }
OLDNEW
« no previous file with comments | « build/config/c++/c++.gni ('k') | build/config/sanitizers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698