Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.0.0] Fix cc_shared_library error with hdr-only libraries #20228

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

keertk
Copy link
Member

@keertk keertk commented Nov 16, 2023

Fix cc_shared_library error with hdr-only libraries

cc_libraries with a linker_input with no libraries (either because they contain only headers or only linkopts) caused errors in cc_shared_libraries triggered by a check that made sure that a cc_library wasn't linked more than once into different shared libraries. That check can be ignored in those cases.

RELNOTES:none

Fixes #19920
Commit 886b13f

PiperOrigin-RevId: 583033207
Change-Id: I227021f33596dbc5a6708fa5a705803094f24665

*** Reason for rollback ***

Rollforward of bafc72e

*** Original change description ***

Fix cc_shared_library error with hdr-only libraries

cc_libraries with a linker_input with no libraries (either because they
contain only headers or only linkopts) caused errors in cc_shared_libraries
triggered by a check that made sure that a cc_library wasn't linked more than
once into different shared libraries. That check can be ignored in those cases.

RELNOTES:none
***
Fixes #19920
PiperOrigin-RevId: 583033207
Change-Id: I227021f33596dbc5a6708fa5a705803094f24665
@keertk keertk requested a review from a team as a code owner November 16, 2023 15:48
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Nov 16, 2023
@keertk keertk added the team-Rules-CPP Issues for C++ rules label Nov 16, 2023
@meteorcloudy meteorcloudy enabled auto-merge (squash) November 16, 2023 16:43
@iancha1992 iancha1992 removed the awaiting-review PR is awaiting review from an assigned reviewer label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rules-CPP Issues for C++ rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants