Reduce overhead for simple 'make -V' lookups by avoiding 'find sys/'.
Setting -DNO_SKIP_MPATH can be used for debugging. Reported by: bde MFC after: 2 weeks Sponsored by: Dell EMC
This commit is contained in:
parent
707a958fe9
commit
1cfde7f353
@ -50,7 +50,8 @@ KERN_OPTS!=cat ${KERNBUILDDIR}/opt*.h | awk '{print $$2;}' | sort -u
|
||||
.export KERN_OPTS
|
||||
.endif
|
||||
|
||||
.if !defined(NO_MODULES) && !defined(__MPATH)
|
||||
.if !defined(NO_MODULES) && !defined(__MPATH) && !make(install) && \
|
||||
(empty(.MAKEFLAGS:M-V) || defined(NO_SKIP_MPATH))
|
||||
__MPATH!=find ${SYSDIR:tA}/ -name \*_if.m
|
||||
.export __MPATH
|
||||
.endif
|
||||
|
@ -214,7 +214,8 @@ SYSTEM_LD_TAIL= @${OBJCOPY} --strip-symbol gcc2_compiled. ${.TARGET} ; \
|
||||
SYSTEM_DEP+= ${LDSCRIPT}
|
||||
|
||||
# Calculate path for .m files early, if needed.
|
||||
.if !defined(NO_MODULES) && !defined(__MPATH) && !make(install)
|
||||
.if !defined(NO_MODULES) && !defined(__MPATH) && !make(install) && \
|
||||
(empty(.MAKEFLAGS:M-V) || defined(NO_SKIP_MPATH))
|
||||
__MPATH!=find ${S:tA}/ -name \*_if.m
|
||||
.endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user