-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix linker inputs for cc_shared_library linking
This CL makes cc_shared_library and cc_binary account for the possibility that a single rule (i.e. a single owner) may place more than one linker_input in a linking context. There is no rule saying that this cannot be the case but until now the implementation of cc_library did place just a single linker input per owner. The Starlark implementation of cc_library is slightly different and has made this bug surface. Rather than change Starlark cc_library we fix cc_shared_library to have the right behavior. We won't control every C++ rule people will write using the Starlark API and therefore can't guarantee that some other rule won't place more than one linker_input per owner. The existing tests already broke with the Starlark cc_library implementation. RELNOTES:none PiperOrigin-RevId: 430195224
- Loading branch information
1 parent
8bd989e
commit c046f96
Showing
3 changed files
with
45 additions
and
14 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