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

If you want to build gnu/usr.bin/clang from source you'll need
bsd.own.mk rev 1.213 installed.

ok miod@ patrick@

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

index 0be074f..013547a 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.23 2022/07/13 10:20:18 jca Exp $
+# $OpenBSD: Makefile,v 1.24 2022/07/26 15:34:33 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 c173080..115bfe2 100644 (file)
@@ -1,13 +1,8 @@
-# $OpenBSD: Makefile,v 1.8 2022/07/13 10:20:18 jca Exp $
+# $OpenBSD: Makefile,v 1.9 2022/07/26 15:34:33 jca Exp $
 
 .include <bsd.own.mk>
 
-.if (${MACHINE} == "arm64") || (${MACHINE} == "amd64")
 PROG=  lldb-server
-.else
-NOPROG=        lldb-server
-.endif
-
 BINDIR=        /usr/bin
 NOMAN=
 
index d460b5d..4ae6f5a 100644 (file)
@@ -1,13 +1,8 @@
-# $OpenBSD: Makefile,v 1.13 2022/07/13 10:20:18 jca Exp $
+# $OpenBSD: Makefile,v 1.14 2022/07/26 15:34:33 jca Exp $
 
 .include <bsd.own.mk>
 
-.if (${MACHINE} == "arm64") || (${MACHINE} == "amd64")
 PROG=  lldb
-.else
-NOPROG=        lldb
-.endif
-
 BINDIR=        /usr/bin
 LIBEXECDIR=/usr/libexec