11# Template file for 'llvm22'
22pkgname=llvm22
3- version=22.1.2
3+ version=22.1.3
44revision=1
55build_wrksrc=llvm
66build_style=cmake
@@ -47,6 +47,7 @@ configure_args="
4747 -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=NO
4848 -DLLVM_SPIRV=/usr/bin/llvm-spirv
4949 -DZLIB_ROOT=${XBPS_CROSS_BASE}/usr
50+ -DLLVM_USE_LINKER=lld
5051"
5152hostmakedepends="perl python3 zlib-devel libffi-devel swig python3-Sphinx
5253 python3-sphinx-automodapi python3-sphinx-markdown-tables python3-yaml pkg-config
@@ -59,15 +60,15 @@ maintainer="Duncaen <duncaen@voidlinux.org>"
5960license="Apache-2.0 AND NCSA AND custom:Apache-2.0-with-llvm-exception"
6061homepage="https://www.llvm.org"
6162distfiles="https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-${version/rc/-rc}.tar.gz"
62- checksum=a252efd7a4a268d2cc5145b17adcaa82757fdee1d06d748b4c24137807710ecb
63+ checksum=7e144bd6da8177757434cc0dfd1476122f143413df379c6d6cf03843512b5a9e
6364conflicts="llvm18>=0 llvm17>=0 llvm15>=0"
6465lib32disabled=yes
6566python_version=3
6667
6768nocross="let the native builders build first"
6869
6970if [ "$CROSS_BUILD" ]; then
70- hostmakedepends+=" llvm${_major}-cross-tools SPIRV-LLVM-Translator${_major} clang${_major}"
71+ hostmakedepends+=" llvm${_major}-cross-tools SPIRV-LLVM-Translator${_major} clang${_major} lld${_major} "
7172else
7273 hostmakedepends+=" llvm${_major}-bootstrap"
7374 # OCaml cross build is broken
@@ -182,8 +183,6 @@ if [ "$CROSS_BUILD" ]; then
182183 -DCMAKE_Fortran_COMPILER=/${_llvm_bindir}/flang"
183184 fi
184185else
185- # Needs lld on the target machine
186- configure_args+=" -DLLVM_USE_LINKER=lld"
187186 subpackages+=" llvm${_major}-cross-tools"
188187fi
189188
0 commit comments