Author: brooks
Date: Tue Dec  2 20:23:10 2014
New Revision: 275425
URL: https://svnweb.freebsd.org/changeset/base/275425

Log:
  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

Modified:
  stable/9/Makefile.inc1   (contents, props changed)
Directory Properties:
  stable/9/   (props changed)

Modified: stable/9/Makefile.inc1
==============================================================================
--- stable/9/Makefile.inc1      Tue Dec  2 19:58:26 2014        (r275424)
+++ stable/9/Makefile.inc1      Tue Dec  2 20:23:10 2014        (r275425)
@@ -621,6 +621,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
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to