git: cb1bee9bd342 - stable/13 - powerpc: Enable LLDB on all powerpc architectures

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 08 Feb 2022 12:28:12 UTC
The branch stable/13 has been updated by pkubaj (ports committer):

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

commit cb1bee9bd342b29c44c29662d4d74c4a5273b9d7
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-01-26 14:02:28 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-02-08 12:26:02 +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
    
    (cherry picked from commit 0b2d2290fe6d4b07d26a4eb0bceadcd2b9b27fd6)
---
 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 e594e90192ad..3fb104ad1c50 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -284,7 +284,7 @@ __DEFAULT_NO_OPTIONS+=LLVM_TARGET_BPF
 
 .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