~ruther/guix-local

7e2255e6c136a0b930028f47bb6c839f1d746d94 — Ludovic Courtès 13 years ago ce5d658
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.
1 files changed, 2 insertions(+), 1 deletions(-)

M guix-build.in
M guix-build.in => guix-build.in +2 -1
@@ 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)