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.
Rename roots in cc_shared_library to deps
The attribute 'roots' was initially called 'exports', however this generated confusion as it did not behave like 'exports' in other rules nor does the cc_shared_library rule guarantee that the symbols from targets in that attribute would be exported. From 'exports' it was renamed 'roots' to express that these are the targets at the top of the tree whose transitive closure would be linked into this shared library (dynamically or statically). However, 'roots' also departs from the standard attribute name used across all rules, 'deps'. 'roots' does not even convey that the attribute accepts other targets. Now that the attribute 'static_deps' has been removed, 'deps' again is the best attribute name we could have. It adds consistency with other rules and makes sure that the attribute assumed by tooling by default to contain the main dependencies is the same. With the --experimental_cc_shared_library flag, the attribute 'deps' will still work. Without the experimental flag, 'deps' must be used. Eventually, we will remove the experimental flag, therefore all targets should rename the attribute. RELNOTES[inc]: The attribute cc_shared_library.roots is renamed to 'deps' PiperOrigin-RevId: 505705317 Change-Id: I69a25f6a835c87626aeeef6c9c3def5c148a31f7
- Loading branch information
1 parent
6fe6a95
commit 68aad18
Showing
3 changed files
with
54 additions
and
27 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