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

Developers shouldn't need to deal with shim_foo.cpp files

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • Dev Platform 2021-08-23

      They are really just a solution to library building tools not liking libraries with no files. This should be handled as an internal detail of the build system rather than making it the responsibility of every developer to know about this limitation.

      Possible options to address this (non-exhaustive):

      • Make Library() auto generate shim files as needed when a "library" has no source files
      • Make the LIBDEPS logic deal with these "libraries" by eliminating them from the dependency graph that scons is aware of and just propagate their LIBDEPS onward.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: