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

rust_stdlib_filegroup: update to support srcs from another package #2735

Merged
merged 6 commits into from
Jul 23, 2024

Conversation

krasimirgg
Copy link
Collaborator

The rust_stdlib_filegroup rule would sometimes break when passing .rlib-s originating from another package to srcs.
The root cause is the logic inside it that creates .a -> .rlib symlinks, where the .a symlink is declared sibling of the .rlib. Bazel only allows symlink siblings to be in the same package as the rule.

This updates the logic to detect this and create an intermediary .rlib under the rule's package, allowing the .a to be symlinked to that.

@krasimirgg krasimirgg marked this pull request as ready for review July 10, 2024 21:55
@krasimirgg krasimirgg disabled auto-merge July 23, 2024 13:11
@krasimirgg krasimirgg added this pull request to the merge queue Jul 23, 2024
Merged via the queue into bazelbuild:main with commit 64a4b52 Jul 23, 2024
3 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.

3 participants