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
This commit is contained in:
parent
1cfde7f353
commit
cb3c3fefe1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user