Bug 1382511 - Add --output-sync=line to MAKEFLAGS where available. draft
authorChris Manchester <cmanchester@mozilla.com>
Thu, 20 Jul 2017 12:28:43 -0700
changeset 612534 3267d019306e688482dd44a418c5505e9569189e
parent 610649 dece50457378ac4934afe9fb3c2a8054e8894588
child 638429 c09cf962bd1853475a14c34326d4fb9316968dd3
push id69519
push userbmo:cmanchester@mozilla.com
push dateThu, 20 Jul 2017 19:29:00 +0000
bugs1382511
milestone56.0a1
Bug 1382511 - Add --output-sync=line to MAKEFLAGS where available. MozReview-Commit-ID: 27FK7x0NcHR
client.mk
--- a/client.mk
+++ b/client.mk
@@ -69,16 +69,19 @@ SH := /bin/sh
 PERL ?= perl
 PYTHON ?= $(shell which python2.7 > /dev/null 2>&1 && echo python2.7 || echo python)
 
 CONFIG_GUESS_SCRIPT := $(wildcard $(TOPSRCDIR)/build/autoconf/config.guess)
 ifdef CONFIG_GUESS_SCRIPT
   CONFIG_GUESS := $(shell $(CONFIG_GUESS_SCRIPT))
 endif
 
+ifeq (4.0,$(firstword $(sort 4.0 $(MAKE_VERSION))))
+MAKEFLAGS += --output-sync=line
+endif
 
 ####################################
 # Sanity checks
 
 # Windows checks.
 ifneq (,$(findstring mingw,$(CONFIG_GUESS)))
 
 # check for CRLF line endings