mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 07:04:53 +00:00
Build libclang also if LLDB is enabled
LLDB depends on libclang as it uses Clang as the expression parser.
Previously setting WITHOUT_CLANG but leaving LLDB enabled (as default)
resulted in a build failure.
Users who set WITHOUT_CLANG in order to reduce build time or size
might want to set WITHOUT_LLDB in addition to WITHOUT_CLANG, or use
WITHOUT_TOOLCHAIN instead.
PR: 260993
Reported by: eugen
Reviewed by: dim
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
(cherry picked from commit adc88b9c01
)
This commit is contained in:
parent
ec746e6195
commit
8402f6341e
|
@ -2341,7 +2341,8 @@ _gensnmptree= usr.sbin/bsnmpd/gensnmptree
|
|||
_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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue