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

Fix long link times on OS X by passing -no_deduplicate to the linker

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.2, 3.7.1
    • Component/s: Build
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.6
    • Sprint:
      Storage 2017-11-13, Storage 2017-12-04

      Description

      Debug builds on OS X take about 45 seconds on my system to link, with the linker spending almost all of its time deduping symbols. By adding the -Wl,-no_deduplicate flag to LINKFLAGS we cut the link time to 4 seconds. Optimized builds do not seem to be affected.

        Attachments

          Activity

            People

            Assignee:
            geert.bosch Geert Bosch
            Reporter:
            geert.bosch Geert Bosch
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: