summaryrefslogtreecommitdiff
path: root/guix-build.in
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-07-12 16:52:52 +0200
committerLudovic Courtès <ludo@gnu.org>2012-07-12 16:52:52 +0200
commit7e2255e6c136a0b930028f47bb6c839f1d746d94 (patch)
tree3489d3a8c55ea480b71e14bf14d024fbe57016ba /guix-build.in
parentce5d658c5c24ccd394818ba892d43ea4c424ec24 (diff)
downloadpatches-7e2255e6c136a0b930028f47bb6c839f1d746d94.tar
patches-7e2255e6c136a0b930028f47bb6c839f1d746d94.tar.gz
guix-build: Default the number of build cores to (current-processor-count).
* guix-build.in (guix-build): Use (current-processor-count) build cores by default.
Diffstat (limited to 'guix-build.in')
-rw-r--r--guix-build.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix-build.in b/guix-build.in
index 19c1641838..ef9cf3bcc9 100644
--- a/guix-build.in
+++ b/guix-build.in
@@ -181,7 +181,8 @@ Report bugs to: ~a.~%") "@PACKAGE_BUGREPORT@"))
;; TODO: Add more options.
(set-build-options %store
#:keep-failed? (assoc-ref opts 'keep-failed?)
- #:build-cores (or (assoc-ref opts 'cores) 1))
+ #:build-cores (or (assoc-ref opts 'cores)
+ (current-processor-count)))
(or (assoc-ref opts 'dry-run?)
(and (build-derivations %store drv)