OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |