mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-24 00:17:37 +01:00
458bc96f8a
GitOrigin-RevId: e9fdcd09c9d513c07cc69ddc316eef2f63a746e7
732 B
732 B
Header Relocation and Cycle Resolution
- Locate all the targets that reference the header file in BUILD.bazel files.
- Find an ideal target to declare the header under. This is usually under the target that features the .cpp file of the same name. Otherwise, the header can be placed in its own library.
- Ensure that all the targets that need this header can depend on the target the header was moved to.
- Run
bazel build //src/...
to check for build failures (look for failures related to dependency cycles). - If the build fails because of a dependency cycle, you may need to split up the dependent library or relocate the header.
- Once the build succeeds, please create a PR and include
devprod-build
for review.