aboutsummaryrefslogtreecommitdiff
path: root/guix/build
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-11-20 22:33:54 +0100
committerLudovic Courtès <ludo@gnu.org>2017-11-20 23:42:55 +0100
commita5792deca5ed0cded624dc1bb161450427a0a9d8 (patch)
tree3ba2143dca1397d3712b657b8a8b54cf19c52e86 /guix/build
parent41916bea1b3f70895ec1ff5a457a1cfa68896c21 (diff)
downloadgnu-guix-a5792deca5ed0cded624dc1bb161450427a0a9d8.tar
gnu-guix-a5792deca5ed0cded624dc1bb161450427a0a9d8.tar.gz
compile: Put an upper bound on the number of workers.
* guix/build/compile.scm (compile-files): Don't use more than 8 workers.
Diffstat (limited to 'guix/build')
-rw-r--r--guix/build/compile.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/guix/build/compile.scm b/guix/build/compile.scm
index 8b5a2faf84..1bd8c60fe5 100644
--- a/guix/build/compile.scm
+++ b/guix/build/compile.scm
@@ -163,7 +163,11 @@ files are for HOST, a GNU triplet such as \"x86_64-linux-gnu\"."
;; compile files in parallel.
(compile #f)
- (n-par-for-each workers build files)
+ ;; XXX: Don't use too many workers to work around the insane memory
+ ;; requirements of the compiler in Guile 2.2.2:
+ ;; <https://lists.gnu.org/archive/html/guile-devel/2017-05/msg00033.html>.
+ (n-par-for-each (min workers 8) build files)
+
(unless (zero? total)
(report-compilation #f total total)))))