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
This commit is contained in:
brooks 2014-12-02 19:58:26 +00:00
parent f3fce3afbd
commit 67bd86774a

View File

@ -689,6 +689,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