extra/ldc to 1.34.0-1

This commit is contained in:
Kevin Mihelich 2023-09-03 20:35:09 +00:00
parent c67a925008
commit 146d7914b8

View file

@ -10,17 +10,17 @@
pkgname=('ldc' 'liblphobos') pkgname=('ldc' 'liblphobos')
groups=('dlang' 'dlang-ldc') groups=('dlang' 'dlang-ldc')
pkgver=1.33.0 pkgver=1.34.0
_pkgcommit=94edb02a3aff4e8dc64814c20ef325f367672f78 _pkgcommit=b0af0b3e3674a6cd801b558de2b13c635be825d0
_dversion=2.103.1 _dversion=2.104.2
_clangversion=14.0.6 # related to where ldc2 looks for compiler-rt sanitizers _clangversion=16 # related to where ldc2 looks for compiler-rt sanitizers
epoch=3 epoch=3
pkgrel=3 pkgrel=1
pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2" pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2"
arch=('x86_64') arch=('x86_64')
url="https://github.com/ldc-developers/ldc" url="https://github.com/ldc-developers/ldc"
license=('BSD') license=('BSD')
makedepends=('git' 'cmake' 'llvm14' 'ldc' 'ninja') makedepends=('git' 'cmake' 'llvm' 'ldc' 'ninja')
# Disable lto as linking the ldc2 binary fails # Disable lto as linking the ldc2 binary fails
options=(!lto) options=(!lto)
@ -58,8 +58,7 @@ build() {
-DLDC_BUILD_WITH_LTO=OFF \ -DLDC_BUILD_WITH_LTO=OFF \
-DLDC_WITH_LLD=OFF \ -DLDC_WITH_LLD=OFF \
-DD_COMPILER_FLAGS="-link-defaultlib-shared=false" \ -DD_COMPILER_FLAGS="-link-defaultlib-shared=false" \
-DADDITIONAL_DEFAULT_LDC_SWITCHES="\"-link-defaultlib-shared\"" \ -DADDITIONAL_DEFAULT_LDC_SWITCHES="\"-link-defaultlib-shared\"," \
-DCMAKE_PREFIX_PATH=/usr/lib/llvm14 \
.. ..
ninja -j2 ninja -j2
} }
@ -70,7 +69,7 @@ check() {
} }
package_ldc() { package_ldc() {
depends=('liblphobos' 'llvm14-libs' 'gcc' 'compiler-rt14') depends=('liblphobos' 'llvm-libs' 'gcc' 'compiler-rt')
backup=('etc/ldc2.conf') backup=('etc/ldc2.conf')
provides=("d-compiler=$_dversion") provides=("d-compiler=$_dversion")