diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2026-04-27 22:15:13 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2026-04-27 22:15:13 +0000 |
| commit | e6d112bbbbf0b09f0f18a85a0a3c6d5a49aff653 (patch) | |
| tree | 5d9f59bf4b74ae31c69b8839264d0fc2c29958ab | |
| parent | 036ff38ebd5a52f26fc2f20238a492a9d0c5f2e6 (diff) | |
packages: Fix clang conditional
Various src.conf options can cause us to build something that ends up
in the clang package, but MK_TOOLCHAIN is not one of them; copy the
proper conditional from lib/Makefile to decide if we need to build
the package.
This fixes the build when LLVM/clang is entirely disabled.
Fixes: bb75b0d581f7 ("packages: Convert world to a subdir build")
MFC after: 2 weeks
Reviewed by: emaste
Sponsored by: https://www.patreon.com/bsdivy
Differential Revision: https://reviews.freebsd.org/D56657
| -rw-r--r-- | packages/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/Makefile b/packages/Makefile index 3c189770dac5..79bdab9f1abd 100644 --- a/packages/Makefile +++ b/packages/Makefile @@ -80,7 +80,8 @@ SUBDIR= blocklist \ SUBDIR+= acct .endif -.if ${MK_CLANG} != "no" || ${MK_TOOLCHAIN} != "no" +.if ${MK_CLANG} != "no" || ${MK_LLD} != "no" || \ + ${MK_LLDB} != "no" || ${MK_LLVM_BINUTILS} != "no" SUBDIR+= clang .endif |
