compile: Put an upper bound on the number of workers.

* guix/build/compile.scm (compile-files): Don't use more than 8 workers.
This commit is contained in:
Ludovic Courtès 2017-11-20 22:33:54 +01:00
parent 41916bea1b
commit a5792deca5
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 5 additions and 1 deletions

View File

@ -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)))))