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

Fix #2402: use get_lib_name_default(lib) instead of lib.owner.name. #2405

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

thb-sb
Copy link
Contributor

@thb-sb thb-sb commented Jan 9, 2024

This commit fixes #2402 by using get_lib_name_default to pass libraries names to rustc through -lstatic instead of relying on the owner's name of the File object.

…owner.name`.

This commit fixes bazelbuild#2402 by using [`get_lib_name_default`] to pass libraries names
to `rustc` through `-lstatic` instead of relying on the owner's name of the `File` object.

[`get_lib_name_default`]: https://github.com/bazelbuild/rules_rust/blob/a1e9f9600cd22ecfdd08fc4a7572ccbdeba97395/rust/private/utils.bzl#L101
@thb-sb thb-sb marked this pull request as ready for review January 9, 2024 08:14
Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@UebelAndre UebelAndre enabled auto-merge (squash) January 9, 2024 12:12
@UebelAndre UebelAndre merged commit 012af3b into bazelbuild:main Jan 9, 2024
3 checks passed
@thb-sb thb-sb deleted the fix_2402 branch January 9, 2024 12:22
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.

The owner name is used instead of the filename when passing a static library using -lstatic.
2 participants