Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Nov 2014 18:18:38 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r274806 - head
Message-ID:  <201411211818.sALIIc5m096704@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Fri Nov 21 18:18:37 2014
New Revision: 274806
URL: https://svnweb.freebsd.org/changeset/base/274806

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

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==============================================================================
--- head/Makefile.inc1	Fri Nov 21 18:05:02 2014	(r274805)
+++ head/Makefile.inc1	Fri Nov 21 18:18:37 2014	(r274806)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411211818.sALIIc5m096704>