Regenerate files with ninja when MONGO_VERSION changes

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: