Apparently favored by deraadt@, pointed out by patrick@, ok patrick@
-# $OpenBSD: Makefile,v 1.21 2022/07/12 21:06:04 jca Exp $
+# $OpenBSD: Makefile,v 1.22 2022/07/12 21:10:26 jca Exp $
.include <bsd.own.mk>
SUBDIR+=lld
-.if ${BUILD_LLDB:L} == "yes"
+.if ${BUILD_LLDB:L} == "yes" || make(obj)
SUBDIR+=lldb-tblgen
SUBDIR+=include/lldb/Commands
SUBDIR+=include/lldb/Core
SUBDIR+=llvm-profdata
-.if ${AR_VERSION:L} == "llvm"
+.if ${AR_VERSION:L} == "llvm" || make(obj)
SUBDIR+=libLLVMDlltoolDriver
SUBDIR+=libLLVMLibDriver
SUBDIR+=llvm-ar