-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Feature/additional link outputs #25091
base: master
Are you sure you want to change the base?
Feature/additional link outputs #25091
Conversation
Hi @yuvalmo, Could you please take a look at the failing checks? |
@sgowroji it seems the failures are in the windows tests due to the first commit where I changed I will revert it later today. |
The feature allows for retrieving additional files created by the link command. The additional filenames are determined by the `cc_toolchain_config` attribute `additional_link_outputs` which lists the suffixes that will be added to the binary name. For binary `out` where `additional_link_outputs = [".a", ".b"]`, we'll expect the following files to be created by the link action: - `out` - `out.a` - `out.b` Solves bazelbuild#24990.
This only applies to windows, where the `.exe` suffix will be removed. This seems to me like a reasonable behaviour for windows devs.
56ac9e5
to
6da302d
Compare
@sgowroji Fixed now, all tests passed. |
Can someone go over this PR? It is really critical to our project |
@pzembrod Would you be available to review this? It has the potential to squash many individual "I just need this one weird file my toolchain happens to produce" requests. :-) |
Solves #24990.
Implement
additional_link_outputs
feature.The feature allows for retrieving additional files created by the link
command.
The additional filenames are determined by the
cc_toolchain_config
attribute
additional_link_outputs
which lists the suffixes that willbe added to the binary name.
For binary
out
whereadditional_link_outputs = [".a", ".b"]
, we'llexpect the following files to be created by the link action:
out
out.a
out.b
rules_cc
pull request with tests for the feature here.