mirror of
https://github.com/mirror/make.git
synced 2026-08-31 03:38:03 +08:00
Add new --trace[=MODE] flags, with --trace=dir
This mode replaces the previous heuristic setting enabled with -O, where we would log directory enter/leave for each synchronized output. Now we only do that if --trace=dir is given.
This commit is contained in:
8
misc.c
8
misc.c
@@ -313,10 +313,7 @@ fatal (const gmk_floc *flocp, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
if (output_sync)
|
||||
log_working_directory (1, 1);
|
||||
else
|
||||
log_working_directory (1, 0);
|
||||
log_working_directory (1, 0);
|
||||
|
||||
if (flocp && flocp->filenm)
|
||||
fprintf (stderr, "%s:%lu: *** ", flocp->filenm, flocp->lineno);
|
||||
@@ -331,8 +328,7 @@ fatal (const gmk_floc *flocp, const char *fmt, ...)
|
||||
|
||||
fputs (_(". Stop.\n"), stderr);
|
||||
|
||||
if (output_sync)
|
||||
log_working_directory (0, 1);
|
||||
log_working_directory (0, 1);
|
||||
|
||||
die (2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user