Only build lldb support libraries on archs where lldb is installed
authorjca <jca@openbsd.org>
Tue, 12 Jul 2022 21:06:04 +0000 (21:06 +0000)
committerjca <jca@openbsd.org>
Tue, 12 Jul 2022 21:06:04 +0000 (21:06 +0000)
Shaves off a significant amount of time (eg on riscv64) in base builds.

Note that you'll need bsd.own.mk rev 1.213 (which make build should take
care of).

ok miod@ patrick@

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

index b0da444..a97b812 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.20 2022/07/11 14:43:24 robert Exp $
+# $OpenBSD: Makefile,v 1.21 2022/07/12 21:06:04 jca Exp $
 
 .include <bsd.own.mk>
 
@@ -51,6 +51,7 @@ SUBDIR+=liblldELF
 SUBDIR+=lld
 
 
+.if ${BUILD_LLDB:L} == "yes"
 SUBDIR+=lldb-tblgen
 SUBDIR+=include/lldb/Commands
 SUBDIR+=include/lldb/Core
@@ -97,6 +98,7 @@ SUBDIR+=liblldbUtility
 
 SUBDIR+=lldb
 SUBDIR+=lldb-server
+.endif
 
 SUBDIR+=include/llvm-objcopy
 SUBDIR+=llvm-objcopy
index f55f44e..6fc8fe7 100644 (file)
@@ -1,13 +1,8 @@
-# $OpenBSD: Makefile,v 1.6 2021/12/17 14:55:47 patrick Exp $
+# $OpenBSD: Makefile,v 1.7 2022/07/12 21:06:04 jca Exp $
 
 .include <bsd.own.mk>
 
-.if (${MACHINE} == "arm64") || (${MACHINE} == "amd64")
 PROG=  lldb-server
-.else
-NOPROG=        lldb-server
-.endif
-
 BINDIR=        /usr/bin
 NOMAN=
 
index 3ab9247..c635a3b 100644 (file)
@@ -1,13 +1,8 @@
-# $OpenBSD: Makefile,v 1.11 2021/12/17 14:55:47 patrick Exp $
+# $OpenBSD: Makefile,v 1.12 2022/07/12 21:06:04 jca Exp $
 
 .include <bsd.own.mk>
 
-.if (${MACHINE} == "arm64") || (${MACHINE} == "amd64")
 PROG=  lldb
-.else
-NOPROG=        lldb
-.endif
-
 BINDIR=        /usr/bin
 LIBEXECDIR=/usr/libexec