extra/ldc to 1.36.0-3

This commit is contained in:
Kevin Mihelich 2024-03-07 20:35:44 +00:00
parent 5387c258fe
commit 76787a11d4
2 changed files with 6 additions and 5 deletions

View file

@ -1,7 +1,7 @@
pkgbase = ldc
pkgdesc = A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2
pkgver = 1.36.0
pkgrel = 1
pkgrel = 3
epoch = 3
url = https://github.com/ldc-developers/ldc
arch = x86_64
@ -11,6 +11,7 @@ pkgbase = ldc
makedepends = git
makedepends = cmake
makedepends = llvm
makedepends = lld
makedepends = ldc
makedepends = ninja
options = !lto

View file

@ -13,14 +13,14 @@ groups=('dlang' 'dlang-ldc')
pkgver=1.36.0
_pkgcommit=530d41be11e92901f797ebbbc1dc695df4af06e9
_dversion=2.106.1
_clangversion=16 # related to where ldc2 looks for compiler-rt sanitizers
_clangversion=17 # related to where ldc2 looks for compiler-rt sanitizers
epoch=3
pkgrel=1
pkgrel=3
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"
license=('BSD')
makedepends=('git' 'cmake' 'llvm' 'ldc' 'ninja')
makedepends=('git' 'cmake' 'llvm' 'lld' 'ldc' 'ninja')
# Disable lto as linking the ldc2 binary fails
options=(!lto)
@ -39,7 +39,7 @@ prepare() {
git config submodule.phobos.url "$srcdir/ldc-phobos"
git -c protocol.file.allow=always submodule update
# Set version used for path construction in getFullClangCompilerRTLibPath()
# Set version used for path construction in getRelativeClangCompilerRTLibPath()
sed -i "s/ldc::llvm_version_base/\"$_clangversion\"/" driver/linker-gcc.cpp
}