bazelbuild / bazel

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

use bazel for a clean output #19083

Open chaosLeee opened 1 year ago

chaosLeee commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.

github-actions[bot] commented 2 days 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.