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

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

Issue 457193002: Port r288424 to gn. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reb Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « build/config/android/config.gni ('k') | no next file » | 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 if (cpu_arch == "arm") { 6 if (cpu_arch == "arm") {
7 import("//build/config/arm.gni") 7 import("//build/config/arm.gni")
8 } 8 }
9 if (is_posix) { 9 if (is_posix) {
10 import("//build/config/gcc/gcc_version.gni") 10 import("//build/config/gcc/gcc_version.gni")
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 268
269 defines += [ "ANDROID" ] 269 defines += [ "ANDROID" ]
270 if (!is_android_webview_build) { 270 if (!is_android_webview_build) {
271 # The NDK has these things, but doesn't define the constants 271 # The NDK has these things, but doesn't define the constants
272 # to say that it does. Define them here instead. 272 # to say that it does. Define them here instead.
273 defines += [ "HAVE_SYS_UIO_H" ] 273 defines += [ "HAVE_SYS_UIO_H" ]
274 } 274 }
275 275
276 # Use gold for Android for most CPU architectures. 276 # Use gold for Android for most CPU architectures.
277 if (cpu_arch == "x86" || cpu_arch == "x64" || cpu_arch == "arm") { 277 if (cpu_arch == "x86" || cpu_arch == "x64" || cpu_arch == "arm") {
278 ldflags += [ "-fuse-ld=gold" ]
278 if (is_clang) { 279 if (is_clang) {
279 # Clang does not support -fuse-ld to invoke the built-in gold linker, 280 # Let clang find the ld.gold in the NDK.
280 # so use the -B option which requires us to specify the path. 281 ldflags += [ "--gcc-toolchain=" + rebase_path(android_toolchain_root,
281 ldflags += [ 282 root_build_dir) ]
282 "-B" + rebase_path("//build/android/arm-linux-androideabi-gold",
283 root_build_dir)
284 ]
285 } else {
286 ldflags += [ "-fuse-ld=gold" ]
287 } 283 }
288 } 284 }
289 285
290 ldflags += [ 286 ldflags += [
291 "-Wl,--no-undefined", 287 "-Wl,--no-undefined",
292 # Don't export symbols from statically linked libraries. 288 # Don't export symbols from statically linked libraries.
293 "-Wl,--exclude-libs=ALL", 289 "-Wl,--exclude-libs=ALL",
294 ] 290 ]
295 if (cpu_arch == "arm") { 291 if (cpu_arch == "arm") {
296 ldflags += [ 292 ldflags += [
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 } else { 886 } else {
891 cflags = [ "-g1" ] 887 cflags = [ "-g1" ]
892 } 888 }
893 } 889 }
894 890
895 config("no_symbols") { 891 config("no_symbols") {
896 if (!is_win) { 892 if (!is_win) {
897 cflags = [ "-g0" ] 893 cflags = [ "-g0" ]
898 } 894 }
899 } 895 }
OLDNEW
« no previous file with comments | « build/config/android/config.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698