diff options
author | Paul Smith <psmith@gnu.org> | 2020-12-05 16:25:12 -0500 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2020-12-05 16:25:12 -0500 |
commit | 7044e0c93ca3d52e3e947764e538a0d1f5f2f16a (patch) | |
tree | 8e7a8994da16a16f8469f0257f05226538e827e5 /NEWS | |
parent | 94d90776914f4086e2402a0a6a9dfa3d1a9a7d0c (diff) | |
download | make-git-7044e0c93ca3d52e3e947764e538a0d1f5f2f16a.tar.gz |
[SV 59169] Add --debug=why and --debug=print options
Add debug options to print recipes even if they would otherwise be
silent, and to print the reason that a target was considered out of
date.
Modify --trace to simply be a shorthand for --debug=print,why.
* NEWS: Announce changes.
* doc/make.texi (Summary of Options): Document the new options.
* doc/make.1: Ditto.
* src/debug.h: Add new flags DB_PRINT and DB_WHY.
* src/makeint.h: Remove the trace_flag variable.
* src/job.c (start_job_command): Check debug flags not trace_flag.
(new_job): Ditto.
* src/main.c (trace_flag): Make a static variable for switches.
(decode_debug_flags): Set DB_PRINT and DB_WHY if trace_flag is set.
* tests/scripts/variables/GNUMAKEFLAGS: Update known-good messages.
* tests/scripts/variables/MAKEFLAGS: Ditto.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -34,6 +34,14 @@ https://sv.gnu.org/bugs/index.php?group=make&report_id=111&fix_release_id=109&se https://www.gnu.org/software/gnulib/manual/html_node/C99-features-assumed.html The configure script should verify the compiler has these features. +* New debug option "print" will show the recipe to be run, even when silent + mode is set. + +* New debug option "why" will show why a target is rebuilt (which + prerequisites caused the target to be considered out of date). + +* The existing --trace option is made equivalent to --debug=print,why + * Target-specific variables can now be marked "unexport". * Exporting / unexporting target-specific variables is handled correctly, so |