From 9acb657eb18a35a920fa24615e5f80060e656e72 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 1 May 2013 07:59:24 -0400 Subject: [PATCH] Don't synchronize output for recursive make unless -Omake --- ChangeLog | 5 +++++ job.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6badda83..148ca6a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-05-01 Paul Smith + + * job.c (start_job_command): Don't redirect output for recursive + make jobs, unless we're in makefile synchronization mode. + 2013-04-29 Eli Zaretskii * w32/include/dlfcn.h: New file. diff --git a/job.c b/job.c index 2a470b69..24888080 100644 --- a/job.c +++ b/job.c @@ -1707,8 +1707,10 @@ start_job_command (struct child *child) #endif #ifdef OUTPUT_SYNC - /* Divert child output into tempfile(s) if output_sync in use. */ - if (output_sync) + /* Divert child output if output_sync in use. Don't capture + recursive make output unless we are synchronizing "make" mode. */ + if (output_sync && (output_sync == OUTPUT_SYNC_MAKE + || !(flags & COMMANDS_RECURSE))) { int outfd = fileno (stdout); int errfd = fileno (stderr);