It should be an error detected at build-time to link the unittest library into the mongo shell, mongod or mongos.
I was thinking that we could add a symbol to the unittest library, and the same symbol to a library called "unittest_forbidden", and link "unittest_forbidden"
into mongo, mongos and mongod. That would at least achieve the goal.
- related to
-
SERVER-25520 unittest library should not be linked into all binaries
- Closed
-
SERVER-52807 libraries should inherit the AIB_COMPONENT of their dependers
- Closed