Date: Sunday, January 23, 2022 @ 00:56:49 Author: wild Revision: 1113508
upgpkg: ldc 3:1.28.1-1: Updated to 1.28.1 Modified: ldc/trunk/PKGBUILD ----------+ PKGBUILD | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-01-22 23:34:39 UTC (rev 1113507) +++ PKGBUILD 2022-01-23 00:56:49 UTC (rev 1113508) @@ -1,20 +1,22 @@ -# Maintainer: Dan Printzell <a...@vild.io> +# Maintainer: Dan Printzell <w...@archlinux.org> # Contributor: Mihails Strasuns <pub...@dicebot.lv> # Contributor: Sven-Hendrik Haase <s...@lutzhaase.com> pkgname=('ldc' 'liblphobos') groups=('dlang' 'dlang-ldc') -pkgver=1.28.0 -_pkgcommit=6a240b66fd5fcaccd85fb50a2717767dd37ef17a -_dversion=2.098.0 +pkgver=1.28.1 +_pkgcommit=34afd6a43abf62b2050a5b0b2c20202080b1163b +_dversion=2.098.1 _clangversion=13.0.0 # related to where ldc2 looks for compiler-rt sanitizers epoch=3 -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" license=('BSD') makedepends=('git' 'cmake' 'llvm' 'ldc' 'ninja') +# Disable lto as linking the ldc2 binary fails +options=(!lto) source=( "git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit" @@ -21,14 +23,12 @@ "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" - "keep-default-alignment-for-atomic-instructions.patch" ) sha256sums=('SKIP' 'SKIP' 'SKIP' - 'SKIP' - '7d33b18c517e7155a44efad984f8226d6bdaa7afae121e3e905727eb73299bbf') + 'SKIP') prepare() { cd "$srcdir/ldc" @@ -39,9 +39,6 @@ git config submodule.tests/d2/dmd-testsuite.url "$srcdir/ldc-testsuite" git submodule update - # https://github.com/ldc-developers/ldc/pull/3842 - patch -Np1 -i ../keep-default-alignment-for-atomic-instructions.patch - # Set version used for path construction in getFullClangCompilerRTLibPath() sed -i "s/ldc::llvm_version_base/\"$_clangversion\"/" driver/linker-gcc.cpp } @@ -59,7 +56,7 @@ -DBUILD_SHARED_LIBS=BOTH \ -DBUILD_LTO_LIBS=ON \ -DLDC_WITH_LLD=OFF \ - -DD_COMPILER_FLAGS="-link-defaultlib-shared=false -linker=gold" \ + -DD_COMPILER_FLAGS="-link-defaultlib-shared=false -linker=gold --flto=thin" \ -DADDITIONAL_DEFAULT_LDC_SWITCHES="\"-link-defaultlib-shared\"" \ .. ninja