git: 93ac817faed2 - main - local.dirdeps.mk ensure tools/build is built if needed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Aug 2023 15:31:58 UTC
The branch main has been updated by sjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=93ac817faed22c7d7d7de5211ac6eb7da6910e02
commit 93ac817faed22c7d7d7de5211ac6eb7da6910e02
Author: Simon J. Gerraty <sjg@FreeBSD.org>
AuthorDate: 2023-08-16 15:31:11 +0000
Commit: Simon J. Gerraty <sjg@FreeBSD.org>
CommitDate: 2023-08-16 15:31:11 +0000
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
---
share/mk/local.dirdeps.mk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/share/mk/local.dirdeps.mk b/share/mk/local.dirdeps.mk
index 1bf81e72f363..14024c06ac0e 100644
--- a/share/mk/local.dirdeps.mk
+++ b/share/mk/local.dirdeps.mk
@@ -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