Open chaosLeee opened 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?
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.
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.
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