forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
--compile_one_dependency
heuristics for header-only libraries
Previously, if a header was part of a header_only library :a, then `--compile_one_dependency` would prefer to choose :b which depends on `:a`, rather than `:a` itself. After this change, it will generally prefer `:a`, unless parse_headers is turned off specifically in this package (in which case it is likely that a.h can only be understood in the context of `b.cc`). RELNOTES: `--compile_one_dependency` selects header-only `cc_library`s in more cases PiperOrigin-RevId: 656460540 Change-Id: Iba70dddd1610a78d71c05274d77d479c84efade7
- Loading branch information
1 parent
ad53147
commit 32d2f62
Showing
3 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters