NO_CLEAN: Utilize delete-old to remove old orphaned libraries/headers in WORLDTMP.
This prevents situations with -DNO_CLEAN from finding stale headers or libraries in places that no longer exist or have moved. It avoids the need to remove all of WORLDTMP by reusing what we already know is obsolete. MFC after: 1 month Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
dc75d44eca
commit
1ae1311d9c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321443
@ -761,6 +761,13 @@ _worldtmp: .PHONY
|
|||||||
rm -rf ${LIBCOMPATTMP}
|
rm -rf ${LIBCOMPATTMP}
|
||||||
.endif
|
.endif
|
||||||
.else
|
.else
|
||||||
|
${_+_}cd ${.CURDIR}; ${WMAKE} -DBATCH_DELETE_OLD_FILES \
|
||||||
|
delete-old delete-old-libs
|
||||||
|
.if defined(LIBCOMPAT)
|
||||||
|
${_+_}cd ${.CURDIR}; ${WMAKE} -DBATCH_DELETE_OLD_FILES \
|
||||||
|
DESTDIR=${LIBCOMPATTMP} \
|
||||||
|
delete-old delete-old-libs
|
||||||
|
.endif
|
||||||
rm -rf ${WORLDTMP}/legacy/usr/include
|
rm -rf ${WORLDTMP}/legacy/usr/include
|
||||||
.if ${USING_SYSTEM_COMPILER} == "yes"
|
.if ${USING_SYSTEM_COMPILER} == "yes"
|
||||||
.for cc in cc c++
|
.for cc in cc c++
|
||||||
|
Loading…
Reference in New Issue
Block a user