Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bazel build verbose compiler commands logging

Tags:

c++

bazel

How can I increase the verbosity of the build process? Bazel seems to print compiler commands only if something goes wrong during the build.

I would like to see which compiler comands the cc_library rule fires, even if everything seems to be fine, to debug linking problems. I already tried various bazel command line parameters but nothing gives me the compiler commands :(

like image 684
Jan Avatar asked Sep 28 '15 12:09

Jan


1 Answers

This is probably what you are looking for:

bazel build --subcommands //my:target 

The --subcommands option causes Bazel's execution phase to print the full command line for each command prior to executing it.

like image 168
Damien Martin-Guillerez Avatar answered Sep 22 '22 01:09

Damien Martin-Guillerez