HomeFreeBSD

depend-cleanup: Force a clean build when options change

Description

depend-cleanup: Force a clean build when options change

Similar to the build epoch check, cache a list of source options in the
object tree, and force a clean build if the cached list does not match
the current list, after filtering out options which are known not to
affect the build (e.g. CLEAN, TESTS, WARNS).

This also adds a DEPEND_CLEANUP option (which defaults to yes unless
the CLEAN option is set) which can be used to skip depend-cleanup for
faster incremental builds.

MFC after: 1 week
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D52011

Details

Provenance
desAuthored on Dec 31 2025, 1:10 PM
Reviewer
imp
Differential Revision
D52011: depend-cleanup: Force a clean build when options change
Parents
rG2c0e9a76c1ce: Makefile.inc1: Make NO_INSTALLKERNEL less of a hack
Branches
Unknown
Tags
Unknown