[arch-commits] Commit in gdc/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sun Sep 9 15:32:52 UTC 2018


    Date: Sunday, September 9, 2018 @ 15:32:52
  Author: ffy00
Revision: 378912

upgpkg: gdc 8.2.1+2.068.2-1

Modified:
  gdc/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++++++++++---
 1 file changed, 23 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-09 14:50:43 UTC (rev 378911)
+++ PKGBUILD	2018-09-09 15:32:52 UTC (rev 378912)
@@ -42,7 +42,7 @@
     _d_ver="+$(cat gdc/gcc/d/VERSION | sed 's|\"||g')"
   fi
 
-  echo "$(cat gcc/gcc/BASE-VER | sed -e 's|gcc-||' -e 's|-.*||')$_d_ver"
+  echo "$(cat gcc/gcc/BASE-VER)$_d_ver"
 }
 
 prepare() {
@@ -66,7 +66,7 @@
 }
 
 build() {
-  cd "$srcdir"/gcc-build
+  cd gcc-build
 
   # using -pipe causes spurious test-suite failures
   # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
@@ -78,7 +78,13 @@
                           --libexecdir=/usr/lib \
                           --mandir=/usr/share/man \
                           --infodir=/usr/share/info \
-                          --enable-languages=d \
+                          --enable-languages=c++,d,lto \
+                          --enable-checking \
+                          --enable-link-mutex \
+                          --disable-libgomp \
+                          --disable-libmudflap \
+                          --disable-libquadmath \
+                          --disable-multilib \
                           --enable-shared \
                           --enable-static \
                           --enable-threads=posix \
@@ -106,9 +112,23 @@
                           --with-pkgversion="GDC ${pkgver%+*} based on D v${pkgver#*+} built with ISL $_islver for Arch Linux" \
                           gdc_include_dir=/usr/include/dlang/gdc
 
+#  make all-gcc all-target-libstdc++-v3
+#  make all-gcc all-target-libstdc++-v3
   make
 }
 
+#check() {
+#  cd gcc-build
+#
+#  make check-d
+#  grep -v "^PASS" gcc/testsuite/gdc*/gdc.sum ||:
+#
+#  cd objdir/x86_64-pc-linux-gnu/libphobos/libdruntime
+#
+#  make unittest
+#  ./unittest
+#}
+
 package_gdc() {
   depends=('gcc' 'perl' 'binutils' 'libgphobos')
   provides=("d-compiler=${pkgver#*+}")



More information about the arch-commits mailing list