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

Unified Diff: build/config/compiler/BUILD.gn

Issue 1680943002: add --gdb-index to linker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make flag default to false Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" ]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698