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

Ensure ninja's generator local_pool has real concurrency

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.4.0-rc6, 4.7.0
    • None
    • Build
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Dev Platform 2020-05-18

    Description

      The SCons ninja generator uses the SCons concurrency setting to configure the local_pool in the generated build.ninja, which constrains the number of local jobs. Unfortunately, the detection in SCons happens too late, and the local_pool always ends up having depth 1. This greatly slows down the early part of the build where we are doing things like generating files from IDL, which uses the local concurrency.

      We can also be a little smarter about preventing misconfiguration by the user.

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: