mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
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.
This commit is contained in:
parent
ce5d658c5c
commit
7e2255e6c1
1 changed files with 2 additions and 1 deletions
|
@ -181,7 +181,8 @@ Report bugs to: ~a.~%") "@PACKAGE_BUGREPORT@"))
|
||||||
;; TODO: Add more options.
|
;; TODO: Add more options.
|
||||||
(set-build-options %store
|
(set-build-options %store
|
||||||
#:keep-failed? (assoc-ref opts 'keep-failed?)
|
#: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?)
|
(or (assoc-ref opts 'dry-run?)
|
||||||
(and (build-derivations %store drv)
|
(and (build-derivations %store drv)
|
||||||
|
|
Loading…
Reference in a new issue