Add a guard against attempting to invoke the buildenv target with -j# as
that silently exits rather than doing something useful. MFC after: 1 week Sponsored by: DARPA, AFRL
This commit is contained in:
parent
6f58afed59
commit
e163efb6c7
@ -691,6 +691,11 @@ buildworld_epilogue:
|
|||||||
buildenvvars:
|
buildenvvars:
|
||||||
@echo ${WMAKEENV:Q}
|
@echo ${WMAKEENV:Q}
|
||||||
|
|
||||||
|
.if ${.TARGETS:Mbuildenv}
|
||||||
|
.if ${.MAKEFLAGS:M-j}
|
||||||
|
.error The buildenv target is incompatible with -j
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
buildenv:
|
buildenv:
|
||||||
@echo Entering world for ${TARGET_ARCH}:${TARGET}
|
@echo Entering world for ${TARGET_ARCH}:${TARGET}
|
||||||
@cd ${.CURDIR} && env ${WMAKEENV} ${BUILDENV_SHELL} || true
|
@cd ${.CURDIR} && env ${WMAKEENV} ${BUILDENV_SHELL} || true
|
||||||
|
Loading…
Reference in New Issue
Block a user