extra/ldc to 1.33.0-3

This commit is contained in:
Kevin Mihelich 2023-08-19 00:47:06 +00:00
parent 58da9631c2
commit eeb34c7076

View file

@ -13,14 +13,14 @@ groups=('dlang' 'dlang-ldc')
pkgver=1.33.0 pkgver=1.33.0
_pkgcommit=94edb02a3aff4e8dc64814c20ef325f367672f78 _pkgcommit=94edb02a3aff4e8dc64814c20ef325f367672f78
_dversion=2.103.1 _dversion=2.103.1
_clangversion=15.0.7 # related to where ldc2 looks for compiler-rt sanitizers _clangversion=14.0.6 # related to where ldc2 looks for compiler-rt sanitizers
epoch=3 epoch=3
pkgrel=2 pkgrel=3
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' 'llvm' 'ldc' 'ninja') makedepends=('git' 'cmake' 'llvm14' 'ldc' 'ninja')
# Disable lto as linking the ldc2 binary fails # Disable lto as linking the ldc2 binary fails
options=(!lto) options=(!lto)
@ -59,7 +59,7 @@ build() {
-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/llvm \ -DCMAKE_PREFIX_PATH=/usr/lib/llvm14 \
.. ..
ninja -j2 ninja -j2
} }
@ -70,7 +70,7 @@ check() {
} }
package_ldc() { package_ldc() {
depends=('liblphobos' 'llvm-libs' 'gcc' 'compiler-rt') depends=('liblphobos' 'llvm14-libs' 'gcc' 'compiler-rt14')
backup=('etc/ldc2.conf') backup=('etc/ldc2.conf')
provides=("d-compiler=$_dversion") provides=("d-compiler=$_dversion")