| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index b71d1464f94dc80f01ea7c74df5fb33cbc9414f8..05528ade517b24a1c9c439da6c489fb820f297b9 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -75,6 +75,10 @@ declare_args() {
|
| # Omit unwind support in official builds to save space.
|
| # We can use breakpad for these builds.
|
| exclude_unwind_tables = is_chrome_branded && is_official_build
|
| +
|
| + # If true, gold linker will save symbol table inside object files.
|
| + # This speeds up gdb startup by 60%
|
| + gdb_index = false
|
| }
|
|
|
| # Apply the default logic for these values if they were not set explicitly.
|
| @@ -287,6 +291,10 @@ config("compiler") {
|
| #"-Wl,--thread-count=4",
|
| ]
|
|
|
| + if (gdb_index) {
|
| + ldflags += [ "-Wl,--gdb-index" ]
|
| + }
|
| +
|
| if (!using_sanitizer && !(is_android && use_order_profiling)) {
|
| # TODO(brettw) common.gypi has this only for target toolset.
|
| ldflags += [ "-Wl,--icf=all" ]
|
|
|