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

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

Issue 788903011: Move to using build-ids to tell GDB about libraries Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Updated to tip of tree Created 5 years, 11 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 | sky/tools/mojo_cache_linker.py » ('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 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 (cpu_arch == "mipsel" || cpu_arch == "mips64el") { 9 if (cpu_arch == "mipsel" || cpu_arch == "mips64el") {
10 import("//build/config/mips.gni") 10 import("//build/config/mips.gni")
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 ldflags += [ "--gcc-toolchain=" + 447 ldflags += [ "--gcc-toolchain=" +
448 rebase_path(android_toolchain_root, root_build_dir) ] 448 rebase_path(android_toolchain_root, root_build_dir) ]
449 } 449 }
450 } 450 }
451 451
452 ldflags += [ 452 ldflags += [
453 "-Wl,--no-undefined", 453 "-Wl,--no-undefined",
454 454
455 # Don't export symbols from statically linked libraries. 455 # Don't export symbols from statically linked libraries.
456 "-Wl,--exclude-libs=ALL", 456 "-Wl,--exclude-libs=ALL",
457
458 # Build-ids make debugging cached libraries (with tmp names) much easier.
459 "-Wl,--build-id",
457 ] 460 ]
458 if (cpu_arch == "arm") { 461 if (cpu_arch == "arm") {
459 ldflags += [ 462 ldflags += [
460 # Enable identical code folding to reduce size. 463 # Enable identical code folding to reduce size.
461 "-Wl,--icf=safe", 464 "-Wl,--icf=safe",
462 ] 465 ]
463 } 466 }
464 467
465 if (is_clang) { 468 if (is_clang) {
466 if (cpu_arch == "arm") { 469 if (cpu_arch == "arm") {
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 cflags += [ "-gsplit-dwarf" ] 1043 cflags += [ "-gsplit-dwarf" ]
1041 } 1044 }
1042 } 1045 }
1043 } 1046 }
1044 1047
1045 config("no_symbols") { 1048 config("no_symbols") {
1046 if (!is_win) { 1049 if (!is_win) {
1047 cflags = [ "-g0" ] 1050 cflags = [ "-g0" ]
1048 } 1051 }
1049 } 1052 }
OLDNEW
« no previous file with comments | « no previous file | sky/tools/mojo_cache_linker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698