I need to extract the compiler flags and linker flags for a certain application that is built by Bazel.
Is there a specific command to do so?
I need to extract the compiler flags and linker flags for a certain application that is built by Bazel.
Is there a specific command to do so?
bazel clean # force bazel to rebuild everything
bazel build -s //...
There are more advanced approaches, e.g.:
You can also use system tools such as strace to figure how what tools are called by Bazel and which command line parameters are involved.