bazelbuild / bazel

a fast, scalable, multi-language and extensible build system
https://bazel.build
Apache License 2.0
23.32k stars 4.1k forks source link

Map file support for cc_binary rule #6718

Open lisaonduty opened 6 years ago

lisaonduty commented 6 years ago

Description of the problem / feature request:

We request support of map file as implicit output target for the cc_binary rule. According to documentation only name.stripped and name.dwp are supported output targets. But it also seems to accept name.pdb files. We use the sandbox-build and want to continue with that.

Feature requests: what underlying problem are you trying to solve with this feature?

We need map-files in our builds so as a work-around we call it name.pdb instead of name.map in this way it can be used by Bazel rules.

What operating system are you running Bazel on?

Linux

What's the output of bazel info release?

0.18.0

Have you found anything relevant by searching the web?

https://groups.google.com/forum/#!topic/bazel-discuss/A00d7Ui1f8s

DhanalakshmiDurairaj commented 1 year ago

Hi Greetings to all, I am working on GHS toolchain. Ccarm compiler generates “per object debug info file” by providing the flag -G and the extension of the file is .dbo. Debug info file for the archive is .dba. GCC toolchain generates per object debug info file with the extension of .dwo and .dwp (for archive) by providing the flag -gsplit-dwarf. Moreover, I am trying to produce .map file also. How to get these outputs (.dbo,.dba and .map)? Please guide me, is there any way to achieve this without using custom rules?

github-actions[bot] commented 6 months ago

Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale.

adzenith commented 6 months ago

This is still relevant!

t-8ch commented 6 months ago

This should be implemented

adzenith commented 6 months ago

Ah, look at that! Thank you! https://github.com/bazelbuild/bazel/issues/20966