git: 8dc42f980473 - main - Invert CPU arch test for LLDB default

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Thu, 10 Feb 2022 00:11:14 UTC
The branch main has been updated by emaste:

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

commit 8dc42f980473a1a8e60515648a6c463fb04007e7
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-02-09 00:45:25 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-02-10 00:11:00 +0000

    Invert CPU arch test for LLDB default
    
    LLDB currently defaults to enabled on all architectures except arm and
    riscv64 (and can probably be enabled for 32-bit arm).  Switch to an
    opt-out list.
    
    Reviewed by:    pkubaj
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D34218
---
 share/mk/src.opts.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index a0f06d036785..c580b9aafc0e 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" || ${__T:Mpowerpc*}
+.if ${__T:Marm*} == "" && ${__T:Mriscv64*} == ""
 __DEFAULT_YES_OPTIONS+=LLDB
 .else
 __DEFAULT_NO_OPTIONS+=LLDB