From 4c392788ee619864ff325c2238884a56c0eb9c5d Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Wed, 14 Jul 2010 14:37:25 -0600 Subject: [PATCH] Using all available cores --- collects/meta/drdr/plt-build.ss | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/collects/meta/drdr/plt-build.ss b/collects/meta/drdr/plt-build.ss index 4fc5dc52bc..0c89e98bec 100644 --- a/collects/meta/drdr/plt-build.ss +++ b/collects/meta/drdr/plt-build.ss @@ -60,12 +60,13 @@ (build-path log-dir "src" "build" "make") (make-path) (list "-j" (number->string (number-of-cpus)))) - (run/collect/wait/log - #:timeout (current-make-install-timeout-seconds) - #:env (current-env) - (build-path log-dir "src" "build" "make-install") - (make-path) - (list "-j" (number->string (number-of-cpus)) "install")))) + (with-env (["SETUP_OPTIONS" (format "-j ~a" (number-of-cpus))]) + (run/collect/wait/log + #:timeout (current-make-install-timeout-seconds) + #:env (current-env) + (build-path log-dir "src" "build" "make-install") + (make-path) + (list "-j" (number->string (number-of-cpus)) "install"))))) (define (call-with-temporary-directory thunk) (define tempdir (symbol->string (gensym 'tmpdir)))