From 12ba0f66e2d6b322fd48c5c5332f85baa0c1c51f Mon Sep 17 00:00:00 2001 From: brooks Date: Tue, 2 Dec 2014 20:23:10 +0000 Subject: [PATCH] MFC r274806: Add a guard against attempting to invoke the buildenv target with -j# as that silently exits rather than doing something useful. Sponsored by: DARPA, AFRL git-svn-id: svn://svn.freebsd.org/base/stable/9@275425 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- Makefile.inc1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index 184647b48..25f73f5f1 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -621,6 +621,11 @@ buildworld_epilogue: buildenvvars: @echo ${WMAKEENV:Q} +.if ${.TARGETS:Mbuildenv} +.if ${.MAKEFLAGS:M-j} +.error The buildenv target is incompatible with -j +.endif +.endif buildenv: @echo Entering world for ${TARGET_ARCH}:${TARGET} @cd ${.CURDIR} && env ${WMAKEENV} ${BUILDENV_SHELL} || true -- 2.45.0