diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2020-03-24 22:27:20 +0100 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-03-25 06:00:01 +0000 |
commit | 11b3939841e6e30415ed3d3d58307f67393b3b35 (patch) | |
tree | 2bb8e4c7ca5c27551cdd1ecc61ce16515013b179 /community/ldc | |
parent | 583d9bf022190aecb0812f519ad51e4846cc8508 (diff) | |
download | aports-11b3939841e6e30415ed3d3d58307f67393b3b35.tar.bz2 aports-11b3939841e6e30415ed3d3d58307f67393b3b35.tar.xz |
community/ldc: switch to RelWithDebInfo buildtype
With the "None" buildtype debug asserts are enabled, see:
https://github.com/ldc-developers/ldc/issues/3386
Also add a -dbg package
Diffstat (limited to 'community/ldc')
-rw-r--r-- | community/ldc/APKBUILD | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/community/ldc/APKBUILD b/community/ldc/APKBUILD index eb500c5ef8..4b15d905fa 100644 --- a/community/ldc/APKBUILD +++ b/community/ldc/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Mathias LANG <pro.mathias.lang@gmail.com> pkgname=ldc pkgver=1.20.1 -pkgrel=2 +pkgrel=3 pkgdesc="The LLVM-based D Compiler" url="https://github.com/ldc-developers/ldc" # LDC does not support host compiling on most of the architecture Alpine supports @@ -13,7 +13,7 @@ makedepends="chrpath cmake curl-dev diffutils gdmd llvm9-dev llvm9-static libedi checkdepends="bash gdb grep llvm9-test-utils" # A user might want to install the '-runtime' subpackage when they have # a dynamically-linked D program. -subpackages="$pkgname-runtime $pkgname-static" +subpackages="$pkgname-runtime $pkgname-static $pkgname-dbg" source="https://github.com/ldc-developers/ldc/releases/download/v$pkgver/ldc-$pkgver-src.tar.gz 01-conf.patch " @@ -36,11 +36,13 @@ build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi + # Don't use None buildtype for now, see + # https://github.com/ldc-developers/ldc/issues/3386#issuecomment-603370855 cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ - -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ -DD_COMPILER="$builddir/stage1/bin/ldmd2" \ |