freebsd-nq/lib/clang/Makefile
Ed Maste adc88b9c01 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
2022-01-07 15:23:55 -05:00

16 lines
250 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
# These have to be built in order.
SUBDIR= libllvm
.if ${MK_CLANG} != "no" || ${MK_LLDB} != "no"
SUBDIR+= libclang
SUBDIR+= headers
.endif
.if ${MK_LLDB} != "no"
SUBDIR+= liblldb
.endif
.include <bsd.subdir.mk>