All of the compilers we use offer a means to force the inclusion of a header: MSVC has /FI and GCC/clang offer -include.
We can produce a SCons tool to automate injecting a forced header correctly based on toolchain, and to also inject the necessary dependency edges to ensure that targets are rebuilt when the force included header changes, since the normal scons implicit dependency scanning will not note the dependency.
- is depended on by
-
SERVER-55834 Automate including of basic.h into all applicable compiles
- Closed