git: 0b2d2290fe6d - main - powerpc: Enable LLDB on all powerpc architectures

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 26 Jan 2022 14:04:26 UTC
The branch main has been updated by pkubaj (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=0b2d2290fe6d4b07d26a4eb0bceadcd2b9b27fd6

commit 0b2d2290fe6d4b07d26a4eb0bceadcd2b9b27fd6
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-01-26 14:02:28 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-01-26 14:03:27 +0000

    powerpc: Enable LLDB on all powerpc architectures
    
    While LLDB on powerpc and powerpcspe builds as-is, on powerpc64 and
    powerpc64le it requires adding a couple of additional source files
    to build.
    
    Differential review:    https://reviews.freebsd.org/D34043
    Approved by:    dim, imp, emaste
---
 lib/clang/liblldb/Makefile | 3 +++
 share/mk/src.opts.mk       | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/clang/liblldb/Makefile b/lib/clang/liblldb/Makefile
index 5672464a9213..ef0bc3e1e785 100644
--- a/lib/clang/liblldb/Makefile
+++ b/lib/clang/liblldb/Makefile
@@ -390,7 +390,9 @@ SRCS+=		Plugins/Language/CPlusPlus/LibStdcppUniquePointer.cpp
 SRCS+=		Plugins/Language/CPlusPlus/MSVCUndecoratedNameParser.cpp
 SRCS+=		Plugins/Language/ClangCommon/ClangHighlighter.cpp
 SRCS+=		Plugins/Language/ObjC/CF.cpp
+SRCS+=		Plugins/Language/ObjC/CFBasicHash.cpp
 SRCS+=		Plugins/Language/ObjC/Cocoa.cpp
+SRCS+=		Plugins/Language/ObjC/CoreMedia.cpp
 SRCS+=		Plugins/Language/ObjC/NSArray.cpp
 SRCS+=		Plugins/Language/ObjC/NSDictionary.cpp
 SRCS+=		Plugins/Language/ObjC/NSError.cpp
@@ -407,6 +409,7 @@ SRCS+=		Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleThreadPlanStepThrough
 SRCS+=		Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.cpp
 SRCS+=		Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp
 SRCS+=		Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
+SRCS+=		Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
 SRCS+=		Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp
 SRCS+=		Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
 SRCS+=		Plugins/ObjectFile/Breakpad/BreakpadRecords.cpp
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index 5aa7a6a45632..d0c4770692d5 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -282,7 +282,7 @@ __DEFAULT_NO_OPTIONS+=LLVM_TARGET_BPF LLVM_TARGET_MIPS
 
 .include <bsd.compiler.mk>
 
-.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "i386"
+.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "i386" || ${__T:Mpowerpc*}
 __DEFAULT_YES_OPTIONS+=LLDB
 .else
 __DEFAULT_NO_OPTIONS+=LLDB