summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-21 17:37:59 -0400
committerPaul Smith <psmith@gnu.org>2013-09-21 17:37:59 -0400
commitd2d44f76c4d86017ccbe6f70ef6318d71947e6d7 (patch)
tree8e22c54c2772d214116a761a5bebd37ff721b101 /job.c
parent6c3e88e60f2c7d2bff3aa1967afcc59f27626c48 (diff)
downloadgunmake-d2d44f76c4d86017ccbe6f70ef6318d71947e6d7.tar.gz
Invert the #define for output-sync: turn it off with NO_OUTPUT_SYNC
Diffstat (limited to 'job.c')
-rw-r--r--job.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/job.c b/job.c
index 79d25ee..12b0ff6 100644
--- a/job.c
+++ b/job.c
@@ -894,7 +894,7 @@ reap_children (int block, int err)
}
else
{
-#ifdef OUTPUT_SYNC
+#ifndef NO_OUTPUT_SYNC
/* If we're sync'ing per line, write the previous line's
output before starting the next one. */
if (output_sync == OUTPUT_SYNC_LINE)
@@ -930,10 +930,10 @@ reap_children (int block, int err)
/* When we get here, all the commands for c->file are finished. */
-#ifdef OUTPUT_SYNC
+#ifndef NO_OUTPUT_SYNC
/* Synchronize any remaining parallel output. */
output_dump (&c->output);
-#endif /* OUTPUT_SYNC */
+#endif
/* At this point c->file->update_status is success or failed. But
c->file->command_state is still cs_running if all the commands
@@ -1267,12 +1267,12 @@ start_job_command (struct child *child)
OUTPUT_SET (&child->output);
-#ifdef OUTPUT_SYNC
+#ifndef NO_OUTPUT_SYNC
if (! child->output.syncout)
/* We don't want to sync this command: to avoid misordered
output ensure any already-synced content is written. */
output_dump (&child->output);
-#endif /* OUTPUT_SYNC */
+#endif
/* Print the command if appropriate. */
if (just_print_flag || trace_flag
@@ -1592,7 +1592,7 @@ start_job_command (struct child *child)
/* make sure CreateProcess() has Path it needs */
sync_Path_environment ();
-#ifdef OUTPUT_SYNC
+#ifndef NO_OUTPUT_SYNC
/* Divert child output if output_sync in use. Don't capture
recursive make output unless we are synchronizing "make" mode. */
if (child->output.syncout)