Additional linker outputs in cc_binaries #14189
Labels
P4
This is either out of scope or we don't have bandwidth to review a PR. (No assignee)
stale
Issues or PRs that are stale (no activity for 30 days)
team-Rules-CPP
Issues for C++ rules
type: feature request
Description of the problem / feature request:
cc_common.link
has anadditional_outputs
arg one can use to obtain extra outputs generated bylinkopts
. Thecc_binary
rule ought to have a means of using that so one doesn't need to write a custom version of cc_binary to make use of it.Feature requests: what underlying problem are you trying to solve with this feature?
I want to be able to generate linkmap files for
cc_binary
targets like I can with objc'sgenerate_linkmap
feature.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Add
-Wl,-Map=$(execpath foo.map)
tolinkopts
and observe the map file not making it out of sandboxes or remote executors.What operating system are you running Bazel on?
Ubuntu
What's the output of
bazel info release
?release 4.2.1-1.2
(We have backported some patches from Bazel 5)If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.bazel build --embed_label 4.2.1-1.2 --stamp -c opt //scripts/packages/debian:bazel-debian
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?We have our own git repository that tracks the release branches here and contains things like bugfixes and minor backports.
Have you found anything relevant by searching the web?
Bits and pieces about this for objc binaries, but nothing apart from the
cc_common.link
arg.Any other information, logs, or outputs that you want to share?
Nope, but feel free to ask for info if needed!
The text was updated successfully, but these errors were encountered: