aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2022-01-07 15:34:08 +0000
committerEd Maste <emaste@FreeBSD.org>2022-01-10 00:25:50 +0000
commit620d156421e249269a4e957a6ad22957308f880f (patch)
tree1054322537fe0643fdb8d580953e4aef48e2aea6
parent73c5a2566dbb3ae57970b203d4de6fcf6088701c (diff)
-rw-r--r--Makefile.inc13
-rw-r--r--lib/clang/Makefile2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 4852a73756f1..c9777d1d45d3 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2197,7 +2197,8 @@ _localedef= usr.bin/localedef
_clang_tblgen= \
lib/clang/libllvmminimal \
usr.bin/clang/llvm-tblgen
-.if ${MK_CLANG_BOOTSTRAP} != "no" || ${MK_CLANG} != "no"
+.if ${MK_CLANG_BOOTSTRAP} != "no" || ${MK_CLANG} != "no" || \
+ ${MK_LLDB} != "no"
_clang_tblgen+= usr.bin/clang/clang-tblgen
.endif
.if ${MK_LLDB} != "no"
diff --git a/lib/clang/Makefile b/lib/clang/Makefile
index df4aa01a2653..cbb2c2a7175f 100644
--- a/lib/clang/Makefile
+++ b/lib/clang/Makefile
@@ -4,7 +4,7 @@
# These have to be built in order.
SUBDIR= libllvm
-.if ${MK_CLANG} != "no"
+.if ${MK_CLANG} != "no" || ${MK_LLDB} != "no"
SUBDIR+= libclang
SUBDIR+= headers
.endif