svn commit: r330723 - head/sys/conf

Bryan Drewery bdrewery at FreeBSD.org
Sat Mar 10 02:10:20 UTC 2018


Author: bdrewery
Date: Sat Mar 10 02:10:19 2018
New Revision: 330723
URL: https://svnweb.freebsd.org/changeset/base/330723

Log:
  Skip reading depend files with -V unless looking up a depend variable.
  
  This speeds up some simple -V lookups significantly.
  
  Reported by:	bde
  MFC after:	2 weeks
  Sponsored by:	Dell EMC

Modified:
  head/sys/conf/kern.post.mk

Modified: head/sys/conf/kern.post.mk
==============================================================================
--- head/sys/conf/kern.post.mk	Sat Mar 10 02:09:36 2018	(r330722)
+++ head/sys/conf/kern.post.mk	Sat Mar 10 02:10:19 2018	(r330723)
@@ -201,6 +201,7 @@ _meta_filemon=	1
 # since it will track dependencies itself.  OBJS_DEPEND_GUESS is still used
 # for _meta_filemon but not for _SKIP_DEPEND.
 .if !defined(NO_SKIP_DEPEND) && (make(*obj) || \
+    (!empty(.MAKEFLAGS:M-V) && empty(.MAKEFLAGS:M*DEP*)) || \
     ${.TARGETS:M*clean*} == ${.TARGETS} || \
     ${.TARGETS:M*install*} == ${.TARGETS})
 _SKIP_DEPEND=	1


More information about the svn-src-head mailing list