Skip to content

Conversation

@ghost
Copy link

@ghost ghost 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.

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.

[`get_lib_name_default`]: https://github.com/bazelbuild/rules_rust/blob/a1e9f9600cd22ecfdd08fc4a7572ccbdeba97395/rust/private/utils.bzl#L101
@ghost ghost 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
@ghost ghost 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.

1 participant