I was wondering if there is a way to get Bazel to list, output, display, etc., all of the commands that can be executed from a command line that are run during a build afte
I'd use aquery:
bazel aquery //foo
It's very fast, because it prints the actions without executing the build. And you don't have to do a bazel clean
before.
You are correct, you can use the -s
(--subcommands
) option:
bazel build -s //foo
See https://docs.bazel.build/versions/master/user-manual.html#flag--subcommands.
For your use case, you'd probably want to redirect the output to a file and then global replace any library/binary paths to the Windows equivalents.
You might want to track https://github.com/bazelbuild/bazel/issues/276 (Windows support), although it'll probably be a while.