diff options
author | atotic <atotic@google.com> | 2016-03-01 15:34:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-01 23:35:28 +0000 |
commit | f68b7c07a30baac088b8eda055ba52835c04692c (patch) | |
tree | e324aac9d5c15e51d94a111cb015f309e0d551fa | |
parent | 171ad18ebe144be508f0aad024d0d3cd09f687dc (diff) | |
download | chromium_src-f68b7c07a30baac088b8eda055ba52835c04692c.zip chromium_src-f68b7c07a30baac088b8eda055ba52835c04692c.tar.gz chromium_src-f68b7c07a30baac088b8eda055ba52835c04692c.tar.bz2 |
add --gdb-index to linker
gold linker has a flag to automatically generate gdb-index section
inside shared libraries when linking.
Webkit single-file compile/linking time:
16.31s without gdb-index
16.11s with gdb-index
gdb startup time
~51s without gdb-index
~19s with gdb-index
BUG=
Review URL: https://codereview.chromium.org/1680943002
Cr-Commit-Position: refs/heads/master@{#378600}
-rw-r--r-- | build/common.gypi | 1 | ||||
-rw-r--r-- | build/config/compiler/BUILD.gn | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 5a57f09..1baa925 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -4608,6 +4608,7 @@ # crashing on the bots: crbug.com/161942. # '-Wl,--threads', # '-Wl,--thread-count=4', + '-Wl,--gdb-index', ], 'conditions': [ # TODO(thestig): Enable this for disabled cases. diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index ce2f609..603a078 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -284,6 +284,7 @@ config("compiler") { # crashing on the bots: crbug.com/161942. #"-Wl,--threads", #"-Wl,--thread-count=4", + "-Wl,--gdb-index", ] if (!using_sanitizer && !(is_android && use_order_profiling)) { |