[SERVER-55833] Create a forceincludes scons tool Created: 06/Apr/21  Updated: 29/Oct/23  Resolved: 05/May/21

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-55834 Automate including of basic.h into al... Closed
Backwards Compatibility: Fully Compatible
Sprint: Dev Platform 2021-05-17
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 05/May/21 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-55833 Add a tool to implement forced includes
Branch: master
https://github.com/mongodb/mongo/commit/91ff6b0c39f3eedd5ce5caf86611fd8fdcdc9995

Generated at Thu Feb 08 05:37:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.