Skip to content

Conversation

@oliverlee
Copy link
Contributor

When defining an additional_link_library that uses deps, e.g.

cc_library(
    name = "start",
    srcs = ["start.c"],
    ...
    deps = [":registers"],
)

where the start library depends on a separate registers library,
libraries in deps are not compiled.

Similar to additional_linker_inputs, these files must be explicitly forwarded in
the DefaultInfo returned by the transition implementation function.

@oliverlee
Copy link
Contributor Author

This PR is based off of #75 and the contents of this PR is contained in the last commit.

If you want to merge this first, we can rebase off master.

@hexdae
Copy link
Owner

hexdae commented Aug 15, 2025

I think there is a conflict with the bezel lock file, but otherwise we can merge this too

When defining an `additional_link_library` that uses `deps`, e.g.

```starlark
cc_library(
    name = "start",
    srcs = ["start.c"],
    ...
    deps = [":registers"],
)
```

where the `start` library depends on a separate `registers` library,
libraries in `deps` are not compiled. Similar to
`additional_linker_inputs`, these files must be explicitly forwarded in
the DefaultInfo returned by the transition implementation function.
@oliverlee oliverlee force-pushed the transitive-additional-link-libraries branch from f298f45 to edfe4f9 Compare August 15, 2025 18:28
@hexdae hexdae merged commit 1abff3e into hexdae:master Aug 18, 2025
6 checks passed
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.

2 participants