Date: Thursday, January 5, 2023 @ 19:41:50
  Author: foutrelis
Revision: 1378345

upgpkg: ldc 3:1.30.0-2: switch to llvm14

LDC doesn't have a release with LLVM 15 support yet; hope this works.

Modified:
  ldc/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-05 19:29:49 UTC (rev 1378344)
+++ PKGBUILD    2023-01-05 19:41:50 UTC (rev 1378345)
@@ -9,12 +9,12 @@
 _dversion=2.100.1
 _clangversion=14.0.6 # related to where ldc2 looks for compiler-rt sanitizers
 epoch=3
-pkgrel=1
+pkgrel=2
 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' 'llvm14' 'ldc' 'ninja')
 # Disable lto as linking the ldc2 binary fails
 options=(!lto)
 
@@ -37,7 +37,7 @@
     git config submodule.druntime.url "$srcdir/ldc-druntime"
     git config submodule.phobos.url "$srcdir/ldc-phobos"
     git config submodule.tests/d2/dmd-testsuite.url "$srcdir/ldc-testsuite"
-    git submodule update
+    git -c protocol.file.allow=always submodule update
 
     # Set version used for path construction in getFullClangCompilerRTLibPath()
     sed -i "s/ldc::llvm_version_base/\"$_clangversion\"/" driver/linker-gcc.cpp
@@ -58,6 +58,7 @@
     -DLDC_WITH_LLD=OFF \
     -DD_COMPILER_FLAGS="-link-defaultlib-shared=false -linker=gold 
--flto=thin" \
     -DADDITIONAL_DEFAULT_LDC_SWITCHES="\"-link-defaultlib-shared\"" \
+    -DCMAKE_PREFIX_PATH=/usr/lib/llvm14 \
     ..
     ninja
 }
@@ -68,7 +69,7 @@
 }
 
 package_ldc() {
-    depends=('liblphobos' 'llvm-libs' 'gcc' 'compiler-rt')
+    depends=('liblphobos' 'llvm14-libs' 'gcc' 'compiler-rt14')
     backup=('etc/ldc2.conf')
     provides=("d-compiler=$_dversion")
 

Reply via email to