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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/tools/mojo_cache_linker.py » ('j') | 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 cc2b7f55922bdd465896eeae06da6ff773e17423..bbee562a107a1b8a37514e8beed6a858f260f253 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -454,6 +454,9 @@ config("compiler") {
# Don't export symbols from statically linked libraries.
"-Wl,--exclude-libs=ALL",
+
+ # Build-ids make debugging cached libraries (with tmp names) much easier.
+ "-Wl,--build-id",
]
if (cpu_arch == "arm") {
ldflags += [
« 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