Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20540

Support compiling with split DWARF debug info

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.13, 3.4.4, 3.5.4
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • v3.4, v3.2
    • Platforms 2017-03-27

      GCC and Clang support compiling the DWARF debugging information to separate .dwo files so that the .o files passed to the linker can remain relatively small. This only works when linking with gold.

      We need to compile with -gsplit-dwarf then add -Wl,--gdb-index to the link flags. Anecodotal reports on other projects (e.g. Chromium https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/8tKb9-Wr8gk) show that this can contribute to a 20-80% reduction in link time.

      more info https://gcc.gnu.org/wiki/DebugFission

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: