aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2018-11-29 15:17:16 +0000
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2018-11-29 16:25:42 +0000
commit5844981147a4af48fc3ffb8d2794487f0236b335 (patch)
tree83d8b8fe676bb32cf58c8aaab5f6abaef23159c5 /configure
parent6a24c58cf13129766b64eca8bbdec678e68b6d4e (diff)
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 10 insertions, 1 deletions
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