RFR: 8325972: Add -x to bash for building with LOG=debug
Magnus Ihse Bursie
ihse at openjdk.org
Fri Feb 16 12:35: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.)
I'm not sure, but I don't think so. Even if we get duplicate output, this way we can understand where things are coming from. I also think there is a difference in e.g. how variables are expanded.
At least, lets start here, and then we might go over the entire debug logging and see what we can cut out.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17875#issuecomment-1948308937
More information about the build-dev
mailing list