RFR: 8325972: Add -x to bash for building with LOG=debug

Magnus Ihse Bursie ihse at openjdk.org
Thu Feb 15 15:13:14 UTC 2024


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.)

-------------

Commit messages:
 - 8325972: Add -x to bash for building with LOG=debug

Changes: https://git.openjdk.org/jdk/pull/17875/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17875&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8325972
  Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/17875.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17875/head:pull/17875

PR: https://git.openjdk.org/jdk/pull/17875


More information about the build-dev mailing list