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 bazel for a clean output #19083

Open
chaosLeee opened this issue Jul 26, 2023 · 3 comments
Open

use bazel for a clean output #19083

chaosLeee opened this issue Jul 26, 2023 · 3 comments
Labels
more data needed stale Issues or PRs that are stale (no activity for 30 days) type: support / not a bug (process)

Comments

@chaosLeee
Copy link

chaosLeee commented Jul 26, 2023

How can I use bazel only install the .so file rather than many of run.files 、runfiles_manifest & soft links, I just want a clean output? begging for answer

@Pavank1992
Copy link
Contributor

If I understood it correctly, you want to build explicit request. If yes, you can refer strip:
name.stripped (only built if explicitly requested): A stripped version of the binary. strip -g is run on the binary to remove debug symbols. Additional strip options can be provided on the command line using --stripopt=-foo. This output is only built if explicitly requested.

https://bazel.build/reference/be/c-cpp#cc_binary

If you have other requirement, could you please elaborate your use-case with sample?

@chaosLeee
Copy link
Author

If I understood it correctly, you want to build explicit request. If yes, you can refer strip: name.stripped (only built if explicitly requested): A stripped version of the binary. strip -g is run on the binary to remove debug symbols. Additional strip options can be provided on the command line using --stripopt=-foo. This output is only built if explicitly requested.

https://bazel.build/reference/be/c-cpp#cc_binary

If you have other requirement, could you please elaborate your use-case with sample?

thx for reply,I will try this function , if it is not what i want, i will provide my code for you. thx again.

@sgowroji
Copy link
Member

Hi @chaosLeee, Did you get a chance to try the above suggestion. Thanks!

Copy link

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.

@github-actions github-actions bot added the stale Issues or PRs that are stale (no activity for 30 days) label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more data needed stale Issues or PRs that are stale (no activity for 30 days) type: support / not a bug (process)
Projects
None yet
Development

No branches or pull requests

3 participants