META_MODE: Delete build targets that fail.

If a meta mode change is triggered but then the build fails then the
next build will not retrigger meta mode. This only prevented by
removing the target on rebuild or on the failure to rebuild.

Sponsored by:	DellEMC
This commit is contained in:
Bryan Drewery 2019-06-15 17:08:28 +00:00
parent 48da57b47f
commit 9e0a1e78e5

View File

@ -33,6 +33,11 @@ MAKE_PRINT_VAR_ON_ERROR+= \
OBJTOP \
${MAKE_PRINT_VAR_ON_ERROR_XTRAS}
# Meta mode may rebuild targets that then fail. The next build won't detect
# the meta mode change. Not all targets have a 'rm ${.TARGET}' in them
# so force it.
.DELETE_ON_ERROR:
.if ${.MAKE.LEVEL} > 0
MAKE_PRINT_VAR_ON_ERROR += .MAKE.MAKEFILES .PATH
.endif