local.dirdeps.mk ensure tools/build is built if needed

If MK_host_egacy is yes, we need it built, make sure that happens.

Reviewed by:	stevek
This commit is contained in:
Simon J. Gerraty 2023-08-16 08:31:11 -07:00
parent 3af3571ca5
commit 93ac817fae

View File

@ -84,7 +84,11 @@ DIRDEPS_FILTER.xtras=
DIRDEPS_FILTER.xtras+= Nusr.bin/clang/clang.host
.endif
.if ${DEP_MACHINE} != "host"
.if ${DEP_MACHINE:Nhost*} == ""
.if ${MK_host_egacy} == "yes" && ${DEP_RELDIR:Ntools/build:Ntargets/*:N*/stage} != ""
DIRDEPS += tools/build
.endif
.else
MK_host_egacy.${DEP_MACHINE}= no
# this is how we can handle optional dependencies