[Bug 260993] lib/clang/liblldb: stable/12 fails to build: DiagnosticIDs.h:71:10: fatal error: 'clang/ Basic/DiagnosticCommonKinds.inc' file not found

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 07 Jan 2022 15:40:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260993

--- Comment #11 from Ed Maste <emaste@freebsd.org> ---
Testing this patch:

commit f8cb4720bfc67eeb033585d85a6323902ece7d1e (HEAD -> PR260993,
github/PR260993)
Author: Ed Maste <emaste@FreeBSD.org>
Date:   Fri Jan 7 10:34:08 2022 -0500

    Build libclang if LLDB is enabled

    LLDB depends on libclang as it uses Clang as the expression parser.
    Previously setting WITHOUT_CLANG but leaving LLDB enabled resulted in
    a build failure.  Users who set WITHOUT_CLANG to reduce build time or
    size may want to set WITHOUT_LLDB as well, or use WITHOUT_TOOLCHAIN
    instead.

    PR:             260993

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.