summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2022-07-12 21:06:05 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2022-07-12 21:06:05 +0000
commita98b53458c5edcf5976ee48711da34bb7c30e8bc (patch)
treecd8026ea8191f9ed24681c9b39b67e8d9a8b5992 /gnu
parent23834298a8aabe023fad9ac4dfcadcb0ef2b1bd6 (diff)
Only build lldb support libraries on archs where lldb is installed
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@
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/clang/Makefile4
-rw-r--r--gnu/usr.bin/clang/lldb-server/Makefile7
-rw-r--r--gnu/usr.bin/clang/lldb/Makefile7
3 files changed, 5 insertions, 13 deletions
diff --git a/gnu/usr.bin/clang/Makefile b/gnu/usr.bin/clang/Makefile
index b0da444ca9b..a97b812e39f 100644
--- a/gnu/usr.bin/clang/Makefile
+++ b/gnu/usr.bin/clang/Makefile
@@ -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
diff --git a/gnu/usr.bin/clang/lldb-server/Makefile b/gnu/usr.bin/clang/lldb-server/Makefile
index f55f44e489c..6fc8fe7539c 100644
--- a/gnu/usr.bin/clang/lldb-server/Makefile
+++ b/gnu/usr.bin/clang/lldb-server/Makefile
@@ -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=
diff --git a/gnu/usr.bin/clang/lldb/Makefile b/gnu/usr.bin/clang/lldb/Makefile
index 3ab9247c4a1..c635a3b4738 100644
--- a/gnu/usr.bin/clang/lldb/Makefile
+++ b/gnu/usr.bin/clang/lldb/Makefile
@@ -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