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

Use cc_toolchain.linker_files() for files required at linking steps #2165

Merged
merged 1 commit into from Sep 21, 2023

Conversation

daivinhtran
Copy link
Contributor

@daivinhtran daivinhtran commented Sep 20, 2023

cc_toolchain.linker_files() returns the linker files used by cc when building cc link action.

Using the same files in rust ensure it has the correct files to resolve the link args returned from cc toolchain. This also allows custom specification on cc_toolchain.linker_files attribute is correctly resolved.

@daivinhtran daivinhtran changed the title Use cc_toolchain.linker_files for files required at linking steps Use cc_toolchain.linker_files() for files required at linking steps Sep 21, 2023
Copy link
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

Thanks!

@illicitonion illicitonion merged commit de2f707 into bazelbuild:main Sep 21, 2023
3 checks passed
@daivinhtran daivinhtran deleted the fix-linker_files branch October 9, 2023 14:25
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.

None yet

2 participants