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

Strip debug symbols from linking when populating compilation cache

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Build
    • Fully Compatible

      We don't cache linker outputs, so for cache hydration we only need to use CppCompile actions that will match workstation configurations. Right now we build all unit tests, benchmarks, and other binaries which takes a very long time in static link debug-enabled configurations.

      Since there isn't a straight forward way to instruct Bazel to compile but not link, instead strip out the debug symbols at link time. This drops the link time on these long running builds by over 90% without invalidating cache of CppCompile actions.

            Assignee:
            zack.winter@mongodb.com Zack Winter
            Reporter:
            zack.winter@mongodb.com Zack Winter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: