[mlpack] 01/02: reduce compile-time memory use

Barak A. Pearlmutter barak+git at pearlmutter.net
Fri Apr 28 12:15:46 UTC 2017


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

commit 19bc9a18a0d1881231cbd12ef337ea2428a4f18b
Author: Barak A. Pearlmutter <barak+git at pearlmutter.net>
Date:   Fri Apr 28 11:57:41 2017 +0100

    reduce compile-time memory use
    
    Thanks to Radovan Birdic <Radovan.Birdic at imgtec.com>
    See https://bugs.debian.org/860014 and patch
    https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=860014;filename=fix-mips32-memory-issue.patch;msg=5
---
 debian/rules | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 70d55bb..6ed92ee 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,8 +31,13 @@ SAVE_SPACE=yes
 endif
 
 ifeq ($(SAVE_SPACE),yes)
-export CXX=g++ --param ggc-min-expand=20 -g0
-DH_FLAGS += --max-parallel=2
+ifneq (, $(filter $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU),mips mipsel))
+	export CXX=g++ --param ggc-min-expand=5 -g0
+	DH_FLAGS += --max-parallel=1
+else
+	export CXX=g++ --param ggc-min-expand=20 -g0
+	DH_FLAGS += --max-parallel=2
+endif
 endif
 
 %:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list