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

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

Issue 1924203004: Implement arflags in the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 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
« no previous file with comments | « no previous file | build/config/posix/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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } else if (is_android) { 158 } else if (is_android) {
159 configs += [ "//build/config/android:compiler" ] 159 configs += [ "//build/config/android:compiler" ]
160 } else if (is_linux) { 160 } else if (is_linux) {
161 configs += [ "//build/config/linux:compiler" ] 161 configs += [ "//build/config/linux:compiler" ]
162 } else if (is_nacl) { 162 } else if (is_nacl) {
163 configs += [ "//build/config/nacl:compiler" ] 163 configs += [ "//build/config/nacl:compiler" ]
164 } else if (is_ios || is_mac) { 164 } else if (is_ios || is_mac) {
165 configs += [ "//build/config/mac:compiler" ] 165 configs += [ "//build/config/mac:compiler" ]
166 } 166 }
167 167
168 # Applies to all Posix systems.
169 if (is_posix) {
170 configs += [ "//build/config/posix:compiler" ]
171 }
172
168 # See the definitions below. 173 # See the definitions below.
169 configs += [ 174 configs += [
170 ":compiler_cpu_abi", 175 ":compiler_cpu_abi",
171 ":compiler_codegen", 176 ":compiler_codegen",
172 ] 177 ]
173 178
174 # In general, Windows is totally different, but all the other builds share 179 # In general, Windows is totally different, but all the other builds share
175 # some common GCC configuration. 180 # some common GCC configuration.
176 if (!is_win) { 181 if (!is_win) {
177 # Common GCC compiler flags setup. 182 # Common GCC compiler flags setup.
(...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 1452
1448 if (is_ios || is_mac) { 1453 if (is_ios || is_mac) {
1449 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1454 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1450 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1455 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1451 config("enable_arc") { 1456 config("enable_arc") {
1452 common_flags = [ "-fobjc-arc" ] 1457 common_flags = [ "-fobjc-arc" ]
1453 cflags_objc = common_flags 1458 cflags_objc = common_flags
1454 cflags_objcc = common_flags 1459 cflags_objcc = common_flags
1455 } 1460 }
1456 } 1461 }
OLDNEW
« no previous file with comments | « no previous file | build/config/posix/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698