llvm: fix up package depenencies

This was based off of a clang-built dylib build, so perhaps lld doesn't
need to depend on llvm if it was statically linked, but I think moving
forward we'd be better off with a dylib build once we can do it with the
clang in the repos.
This commit is contained in:
Jeremy Drake 2025-04-09 17:10:01 -07:00
parent e49d18bcff
commit d4e1e8397f

View File

@ -24,9 +24,10 @@ makedepends=('cmake'
'gcc'
'ninja'
'pkgconf'
'libffi'
'python'
'git'
'libzstd-devel'
'zlib-devel'
)
_url=https://github.com/llvm/llvm-project/releases/download/${_tag}
source=("${_url}/llvm-${pkgver}.src.tar.xz"{,.sig}
@ -213,7 +214,8 @@ build() {
package_clang() {
pkgdesc="C language family frontend for LLVM"
url="https://clang.llvm.org/"
depends=("llvm=${pkgver}")
depends=("gcc" "llvm=${pkgver}")
optdepends=("compiler-rt: for -rtlib=compiler-rt")
# Disable automatic installation of components that go into subpackages
# -i.orig to check what has been removed in-case it starts dropping more than it should
@ -233,8 +235,7 @@ package_clang() {
package_clang-analyzer() {
pkgdesc="A source code analysis framework"
url="https://clang-analyzer.llvm.org/"
depends=("clang=${pkgver}"
"python")
depends=("clang=${pkgver}" "python")
local _analyzer
for _analyzer in scan-build scan-build-py scan-view; do
@ -261,9 +262,7 @@ package_compiler-rt() {
package_lld() {
pkgdesc="Linker tools for LLVM"
url="https://lld.llvm.org/"
depends=("gcc-libs"
"zlib"
"zstd")
depends=("gcc-libs" "llvm=${pkgver}")
DESTDIR="${pkgdir}" cmake --install "${srcdir}"/build/tools/lld
@ -272,6 +271,7 @@ package_lld() {
package_llvm() {
pkgdesc="Low Level Virtual Machine"
depends=("gcc-libs" "libzstd" "zlib")
# Disable automatic installation of components that go into subpackages
# -i.orig to check what has been removed in-case it starts dropping more than it should