diff options
author | brooks <brooks@FreeBSD.org> | 2014-12-02 19:58:26 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2014-12-02 19:58:26 +0000 |
commit | 67bd86774ae5963e905348ea5eb7d2cee3adb02f (patch) | |
tree | e1e126a6fe7565cabd128145ca45600518c365ae /Makefile.inc1 | |
parent | f3fce3afbd1c4050c718893066b4e89d130ef5d9 (diff) | |
download | FreeBSD-src-67bd86774ae5963e905348ea5eb7d2cee3adb02f.zip FreeBSD-src-67bd86774ae5963e905348ea5eb7d2cee3adb02f.tar.gz |
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
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 67ecdc2..d3128e3 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 |