Skip to content

Respect runfiles of deps in cc_shared_library#673

Open
aszady wants to merge 1 commit intobazelbuild:mainfrom
aszady:cc_shared_library/runfiles
Open

Respect runfiles of deps in cc_shared_library#673
aszady wants to merge 1 commit intobazelbuild:mainfrom
aszady:cc_shared_library/runfiles

Conversation

@aszady
Copy link
Copy Markdown

@aszady aszady commented Apr 1, 2026

One of the providers of cc_shared_library is DefaultInfo, so that one can use the produced library as a standalone artifact (without further consumption by CC rules). An example would be to just dlopen that from another program. For that to work, it needs to provide the complete runfiles as well, especially these needed by the (static) libraries it consists of.

This change adds the missing collection of runfiles over deps.

@aszady aszady force-pushed the cc_shared_library/runfiles branch from c58176a to 4598cd4 Compare April 1, 2026 13:56
One of the providers of `cc_shared_library` is `DefaultInfo`,
so that one can use the produced library as a standalone artifact (without further consumption by CC rules).
An example would be to just `dlopen` that from another program.
For that to work, it needs to provide the complete runfiles as well,
especially these needed by the (static) libraries it consists of.

This change adds the missing collection of runfiles over `deps`.
@aszady aszady force-pushed the cc_shared_library/runfiles branch from 4598cd4 to 3384272 Compare April 1, 2026 13:57
@aszady aszady marked this pull request as ready for review April 1, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant