--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CACfYaaWx3NXHjBKEpmfL%3DBLequAiwH_7TJCNB_QWut%3DEOxFO%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Hello,I think you are mistaking the convenience symlink with the actual output directory. If you actually look at the convenience symlink:$ readlink bazel-out~dmarting/.cache/bazel/_bazel_dmarting/4c68128ea7d752c9535d956d14249eea/execroot/io_bazel/bazel-out$ readlink bazel-bin~dmarting/.cache/bazel/_bazel_dmarting/4c68128ea7d752c9535d956d14249eea/execroot/io_bazel/bazel-out/local-fastbuild/binThen bazel-bin is under a "local-fastbuild/bin" directory under bazel-out. If you look at bazel-out itself you will find the configuration speicific directories:$ ls bazel-outhost local-fastbuild stable-status.txt _tmp volatile-status.txtThe -c opt will create a local-opt and you can also see the host configuration there.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
Thanks for the response, that seems great.Is there a way I can get a manifest of outputs from Bazel?If possible I'd like to interrogate Bazel for a list of all of my final executable outputs, but none of the object files, dependency files, unit test executables, or other "intermediate".Otherwise, if I want to copy them out into an artifact bundle, I need to keep an explicit list of artifacts, which needs to be synchronized with the Bazel targets. That's not the end of the world, but it's outside of Bazel's knowledge.Charles
On Wed, Jul 26, 2017 at 2:54 AM, Damien Martin-Guillerez <dmar...@google.com> wrote:
Hello,I think you are mistaking the convenience symlink with the actual output directory. If you actually look at the convenience symlink:$ readlink bazel-out~dmarting/.cache/bazel/_bazel_dmarting/4c68128ea7d752c9535d956d14249eea/execroot/io_bazel/bazel-out$ readlink bazel-bin~dmarting/.cache/bazel/_bazel_dmarting/4c68128ea7d752c9535d956d14249eea/execroot/io_bazel/bazel-out/local-fastbuild/binThen bazel-bin is under a "local-fastbuild/bin" directory under bazel-out. If you look at bazel-out itself you will find the configuration speicific directories:$ ls bazel-outhost local-fastbuild stable-status.txt _tmp volatile-status.txtThe -c opt will create a local-opt and you can also see the host configuration there.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CACfYaaXjh4QXPy1cJH68BSx9_97-F6rPPgB05EjXNDU8njaM%3DQ%40mail.gmail.com.
"final executable" is kind of subjective. What if your system image contains a shell script that invokes other C programs?Some options:
- Write some kind of zip/tarball genrule to bundle your desired artifacts. (I guess that's an explicit list.)
- Use "bazel query" to find all your cc_binary rules (maybe too broad, if you inevitably write your own internal tools)
- Use the "tags" attribute with cc_binary, etc., you can tag the special ones with a special tag. But that's effectively an explicit list, too.
--Rob
Agreed re: subjectivity and that's not something I'd want bazel to solve. Sorry if I mis-expressed myself.I'm happy to maintain a list of targets (e.g. "//tools:foo", "//app:firmware", ...), I was just wondering if there's a way to go from that list plus a bazel invocation (-c, --crosstool_top, etc) to a final list of files.Bazel knows this information, since it puts the files there.
On Wed, Jul 26, 2017 at 11:18 AM, Robert Tsai (Verb Ext.) <rober...@verbsurgical.com> wrote:
"final executable" is kind of subjective. What if your system image contains a shell script that invokes other C programs?Some options:
- Write some kind of zip/tarball genrule to bundle your desired artifacts. (I guess that's an explicit list.)
- Use "bazel query" to find all your cc_binary rules (maybe too broad, if you inevitably write your own internal tools)
- Use the "tags" attribute with cc_binary, etc., you can tag the special ones with a special tag. But that's effectively an explicit list, too.
--Rob
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CACfYaaWx3NXHjBKEpmfL%3DBLequAiwH_7TJCNB_QWut%3DEOxFO%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CACfYaaXjh4QXPy1cJH68BSx9_97-F6rPPgB05EjXNDU8njaM%3DQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CACfYaaWm79DUhO4xv%3D3ibc1VcfSb3aFExyF77g-xpj%3Dhn0_D3A%40mail.gmail.com.