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

Regenerate files with ninja when MONGO_VERSION changes

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Dev Platform 2021-09-06

      If we update MONGO_VERSION and attempt to rebuild using ninja, auto-generated files that use MONGO_VERSION will not automatically regenerate. Sample repro:

      $ git checkout r5.0.2~1
      $ scons ... --ninja generate-ninja
      $ ninja build/.../mongo/util/version_constants.h
      $ git checkout r5.0.2
      $ ninja build/.../mongo/util/version_constants.h
      

      The second build should not return "ninja: no work to do"

      The files are regenerated correctly when using plain SCons.

            Assignee:
            ryan.egesdahl@mongodb.com Ryan Egesdahl (Inactive)
            Reporter:
            xuerui.fa@mongodb.com Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: