Bazel构建详细的编译器命令记录

Bazel构建详细的编译器命令记录

本文介绍了Bazel构建详细的编译器命令记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何增加构建过程的详细程度?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.

我想看看哪一个编译器与cc_library规则一起触发,即使一切似乎都很好,也可以调试链接问题.我已经尝试过各种bazel命令行参数,但是没有任何编译器命令给我:(

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 :(

推荐答案

这可能是您正在寻找的

-s 开关使Bazel打印出所有调用的命令.

The -s switch makes Bazel print out all the invoked commands.

这篇关于Bazel构建详细的编译器命令记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 21:49