RFR: 8325972: Add -x to bash for building with LOG=debug
Erik Joelsson
erikj at openjdk.org
Thu Feb 15 18:02:53 UTC 2024
On Thu, 15 Feb 2024 15:07:46 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
> I don't understand why I have never thought of this before. If we add `-x` to the set of bash arguments when running with LOG=debug, we get output of *all* shell commands that make is running, even those for $(shell).
>
> This makes it soooo much easier to understand what is actually happening in the makefile! (To the point where we could actually consider moving other stuff away from the debug level.)
Should we also disable the built in make command printing option for `debug` to avoid duplicate output?
-------------
PR Review: https://git.openjdk.org/jdk/pull/17875#pullrequestreview-1883482256
More information about the build-dev
mailing list