diff --git a/Makefile.inc1 b/Makefile.inc1 index 67ecdc2cc705..d3128e3be070 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -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