From 5844981147a4af48fc3ffb8d2794487f0236b335 Mon Sep 17 00:00:00 2001
From: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Date: Thu, 29 Nov 2018 15:17:16 +0000
Subject: Ignoring building of GCC for pipeline

GNU Binutils (which provides the GNU Linker) is not ported to Mac OS
systems. GCC also takes a very long time to build, and if we are to still
have linking problems with LLVM's linker, it would be better to just ignore
GCC also and use the system's C compiler and linker together.

So for the time being, GCC isn't a main target of the basic dependencies
and won't be installed. But we have kept the rules that were checked on a
GNU/Linux operating system.
---
 configure | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

(limited to 'configure')

diff --git a/configure b/configure
index 4753320..f1e820a 100755
--- a/configure
+++ b/configure
@@ -563,8 +563,17 @@ fi
 
 # Build Basic dependencies
 # ------------------------
+#
+# Since the system might not have GNU Coreutils at this stage, we'll just
+# default to 4 threads if the actual number isn't found. This is because
+# some versions of Make complain about not having enough 'pipe' (memory) on
+# some systems. After some searching, I found out its because of too many
+# threads.
+if which nproc 2> /dev/null; then numthreads=$(nproc --all);
+else                              numthreads=4;
+fi
 make -f reproduce/src/make/dependencies-basic.mk \
-     static_build=$static_build -j8
+     static_build=$static_build -j$numthreads
 
 
 
-- 
cgit v1.2.1