summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-05-13 01:30:24 -0400
committerPaul Smith <psmith@gnu.org>2013-05-13 01:30:24 -0400
commit381baeef7aa4f2c8758a9910ebb97af46c0dd7eb (patch)
treea62e74040e2ea16c3480566b0d2cb246c6fec453 /misc.c
parent5367d393ddb36fc8b3f358418d5c9f2b9f01d2fe (diff)
downloadgunmake-381baeef7aa4f2c8758a9910ebb97af46c0dd7eb.tar.gz
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.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/misc.c b/misc.c
index 2a6c6ea..301a3c2 100644
--- a/misc.c
+++ b/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);
}