Skip to content

Commit

Permalink
Add a guard against attempting to invoke the buildenv target with -j# as
Browse files Browse the repository at this point in the history
that silently exits rather than doing something useful.

MFC after:	1 week
Sponsored by:	DARPA, AFRL
  • Loading branch information
brooksdavis committed Nov 21, 2014
1 parent 1e5d8c9 commit 3667f63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile.inc1
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,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
Expand Down

0 comments on commit 3667f63

Please sign in to comment.