Date: Monday, April 16, 2018 @ 20:55:07 Author: wild Revision: 316566
upgpkg: dmd 1:2.079.1-1 Updated to 2.079.1 and uses ldc to gain a performance boost (~20-30% according to upstream) Modified: dmd/trunk/PKGBUILD ----------+ PKGBUILD | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-04-16 20:54:57 UTC (rev 316565) +++ PKGBUILD 2018-04-16 20:55:07 UTC (rev 316566) @@ -11,12 +11,12 @@ pkgdesc="D programming language compiler and standard library" groups=('dlang' 'dlang-dmd') pkgbase=dmd -pkgver=2.079.0 +pkgver=2.079.1 pkgrel=1 epoch=1 arch=('x86_64') url="http://www.dlang.org" -makedepends=('git' 'dmd') +makedepends=('git' 'ldc') source=("git+https://github.com/dlang/dmd.git#tag=v$pkgver" "git+https://github.com/dlang/druntime.git#tag=v$pkgver" "git+https://github.com/dlang/phobos.git#tag=v$pkgver" @@ -27,7 +27,7 @@ sha256sums=('SKIP' 'SKIP' 'SKIP' - '75c3df4ba4e731ac0fa36a60cd04bbac05a2d79633f4602ad645f533847929ce' + 'ae662ae24def53cb30733dd9ea811c4363a26c9434baab6d0a5d832a92d8af28' 'SKIP' '3d639e89528fed1da90006f4dfb2b0fdc41308da5a96d953381ff4ccf257c035' '19c9cd3670bdef7fbde88de36c459d940e6b7bacc2a5e48aefbfd1b2c1895e07') @@ -37,11 +37,13 @@ prepare() { # We only want to extract the docs & samples, not the prebuild executables tar xfJ "dmd.$pkgver.linux.tar.xz" dmd2/html + + sed -i "/DFLAGS :=/ a DFLAGS += -link-defaultlib-shared=false" "$srcdir"/dmd/src/posix.mak } build() { cd "$srcdir"/dmd - make -f posix.mak BUILD=release RELEASE=1 PIC=1 + make -f posix.mak BUILD=release RELEASE=1 PIC=1 ENABLE_LTO=1 HOST_DMD=ldmd2 cd "$srcdir"/druntime make -f posix.mak DMD="$srcdir"/dmd/generated/linux/release/*/dmd BUILD=release RELEASE=1 PIC=1