diff options
-rw-r--r-- | build/config/compiler/BUILD.gn | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 3a8327c..37d583e 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. @@ -300,6 +304,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" ] |