Revert BUILD_LLDB use, don't push manual repair on all people building from source
authorjca <jca@openbsd.org>
Wed, 13 Jul 2022 10:20:18 +0000 (10:20 +0000)
committerjca <jca@openbsd.org>
Wed, 13 Jul 2022 10:20:18 +0000 (10:20 +0000)
Pointed out by sthen@

While make build indeed takes care of running make install in share/mk,
running make obj first would error out when encountering the unknown
BUILD_LLDB variable.  I can wait a few days before committing this again.

gnu/usr.bin/clang/Makefile
gnu/usr.bin/clang/lldb-server/Makefile
gnu/usr.bin/clang/lldb/Makefile

index 71f16db..0be074f 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.22 2022/07/12 21:10:26 jca Exp $
+# $OpenBSD: Makefile,v 1.23 2022/07/13 10:20:18 jca Exp $
 
 .include <bsd.own.mk>
 
@@ -51,7 +51,6 @@ SUBDIR+=liblldELF
 SUBDIR+=lld
 
 
-.if ${BUILD_LLDB:L} == "yes" || make(obj)
 SUBDIR+=lldb-tblgen
 SUBDIR+=include/lldb/Commands
 SUBDIR+=include/lldb/Core
@@ -98,7 +97,6 @@ SUBDIR+=liblldbUtility
 
 SUBDIR+=lldb
 SUBDIR+=lldb-server
-.endif
 
 SUBDIR+=include/llvm-objcopy
 SUBDIR+=llvm-objcopy
@@ -109,7 +107,7 @@ SUBDIR+=llvm-readobj
 
 SUBDIR+=llvm-profdata
 
-.if ${AR_VERSION:L} == "llvm" || make(obj)
+.if ${AR_VERSION:L} == "llvm"
 SUBDIR+=libLLVMDlltoolDriver
 SUBDIR+=libLLVMLibDriver
 SUBDIR+=llvm-ar
index 6fc8fe7..c173080 100644 (file)
@@ -1,8 +1,13 @@
-# $OpenBSD: Makefile,v 1.7 2022/07/12 21:06:04 jca Exp $
+# $OpenBSD: Makefile,v 1.8 2022/07/13 10:20:18 jca Exp $
 
 .include <bsd.own.mk>
 
+.if (${MACHINE} == "arm64") || (${MACHINE} == "amd64")
 PROG=  lldb-server
+.else
+NOPROG=        lldb-server
+.endif
+
 BINDIR=        /usr/bin
 NOMAN=
 
index c635a3b..d460b5d 100644 (file)
@@ -1,8 +1,13 @@
-# $OpenBSD: Makefile,v 1.12 2022/07/12 21:06:04 jca Exp $
+# $OpenBSD: Makefile,v 1.13 2022/07/13 10:20:18 jca Exp $
 
 .include <bsd.own.mk>
 
+.if (${MACHINE} == "arm64") || (${MACHINE} == "amd64")
 PROG=  lldb
+.else
+NOPROG=        lldb
+.endif
+
 BINDIR=        /usr/bin
 LIBEXECDIR=/usr/libexec