Bug 1382511 - Add --output-sync=line to MOZ_MAKE_FLAGS where available. r=glandium
authorChris Manchester <cmanchester@mozilla.com>
Tue, 25 Jul 2017 17:23:25 -0700
changeset 421741 ae6577d5769856cc5c899d42cf3b52d4dd1fef55
parent 421740 4e799d2c0555423eae7690b14d8be8aad59d39ee
child 421742 ae8bd889b02d932210c1dd101ddd39a3619bc3cc
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1382511
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1382511 - Add --output-sync=line to MOZ_MAKE_FLAGS where available. r=glandium MozReview-Commit-ID: 27FK7x0NcHR
client.mk
--- a/client.mk
+++ b/client.mk
@@ -137,16 +137,19 @@ ifdef MOZ_PARALLEL_BUILD
 endif
 
 # Automatically add -jN to make flags if not defined. N defaults to number of cores.
 ifeq (,$(findstring -j,$(MOZ_MAKE_FLAGS)))
   cores=$(shell $(PYTHON) -c 'import multiprocessing; print(multiprocessing.cpu_count())')
   MOZ_MAKE_FLAGS += -j$(cores)
 endif
 
+ifeq (4.0,$(firstword $(sort 4.0 $(MAKE_VERSION))))
+MOZ_MAKE_FLAGS += --output-sync=line
+endif
 
 ifdef MOZ_BUILD_PROJECTS
 
 ifdef MOZ_CURRENT_PROJECT
   BUILD_PROJECT_ARG = MOZ_BUILD_APP=$(MOZ_CURRENT_PROJECT)
   export MOZ_CURRENT_PROJECT
 else
   MOZ_MAKE = $(error Cannot build in the OBJDIR when MOZ_CURRENT_PROJECT is not set.)