community/ldc to 1.21.0-1

This commit is contained in:
Kevin Mihelich 2020-04-28 23:22:00 +00:00
parent b0693a1dcd
commit 52a01b3066

View file

@ -10,12 +10,12 @@ buildarch=12
pkgname=('ldc' 'liblphobos')
groups=('dlang' 'dlang-ldc')
pkgver=1.20.1
_pkgcommit=96437a25c28a2a6fbeb36dc6a46b600e56021051
_dversion=2.090.1
pkgver=1.21.0
_pkgcommit=7022448f25113cfa5cc04124b6bcbb24547c7590
_dversion=2.091.1
_clangversion=10.0.0 # related to where ldc2 looks for compiler-rt sanitizers
epoch=2
pkgrel=3
pkgrel=1
pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2"
arch=('x86_64')
url="https://github.com/ldc-developers/ldc"
@ -27,14 +27,12 @@ source=(
"ldc-druntime::git+https://github.com/ldc-developers/druntime.git"
"ldc-phobos::git+https://github.com/ldc-developers/phobos.git"
"ldc-testsuite::git+https://github.com/ldc-developers/dmd-testsuite.git"
"fix-llvm_prefetch-for-LLVM-10.patch"
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'f123e482402416d262739a21de4c156cc37912c0f796f9d2239607a173680e28')
'SKIP')
prepare() {
cd "$srcdir/ldc"
@ -45,9 +43,6 @@ prepare() {
git config submodule.tests/d2/dmd-testsuite.url "$srcdir/ldc-testsuite"
git submodule update
# https://github.com/ldc-developers/ldc/issues/3397
patch -Np1 -d runtime/druntime <../fix-llvm_prefetch-for-LLVM-10.patch
# Set version used for path construction in getFullClangCompilerRTLibPath()
sed -i "s/ldc::llvm_version_base/\"$_clangversion\"/" driver/linker-gcc.cpp
}