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