From b1954c4dc0cd75524172dfad5be77d5e5f4ae45a Mon Sep 17 00:00:00 2001 From: jca Date: Wed, 13 Jul 2022 10:20:18 +0000 Subject: [PATCH] Revert BUILD_LLDB use, don't push manual repair on all people building from source 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 | 6 ++---- gnu/usr.bin/clang/lldb-server/Makefile | 7 ++++++- gnu/usr.bin/clang/lldb/Makefile | 7 ++++++- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/gnu/usr.bin/clang/Makefile b/gnu/usr.bin/clang/Makefile index 71f16db67ee..0be074f94b0 100644 --- a/gnu/usr.bin/clang/Makefile +++ b/gnu/usr.bin/clang/Makefile @@ -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 @@ -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 diff --git a/gnu/usr.bin/clang/lldb-server/Makefile b/gnu/usr.bin/clang/lldb-server/Makefile index 6fc8fe7539c..c1730808141 100644 --- a/gnu/usr.bin/clang/lldb-server/Makefile +++ b/gnu/usr.bin/clang/lldb-server/Makefile @@ -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 +.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 c635a3b4738..d460b5da92b 100644 --- a/gnu/usr.bin/clang/lldb/Makefile +++ b/gnu/usr.bin/clang/lldb/Makefile @@ -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 +.if (${MACHINE} == "arm64") || (${MACHINE} == "amd64") PROG= lldb +.else +NOPROG= lldb +.endif + BINDIR= /usr/bin LIBEXECDIR=/usr/libexec -- 2.20.1