[Parallel-Build] remove -u, -j 1 is uniprocessor, SETUP_OPTIONTS => PLT_SETUP_OPTIONS

This commit is contained in:
Kevin Tew 2010-07-06 10:01:29 -06:00
parent a6723283b8
commit c9e84f9f67
5 changed files with 5 additions and 10 deletions

View File

@ -21,7 +21,6 @@
call-install
call-post-install
pause-on-errors
parallel-build
parallel-workers
force-unpacks
doc-pdf-dest

View File

@ -27,8 +27,7 @@
(define setup-program-name (make-parameter "setup-plt"))
(define-flag-param parallel-build #t)
(define-flag-param parallel-workers (processor-count))
(define-flag-param parallel-workers (min (processor-count) 8))
(define-flag-param verbose #f)
(define-flag-param make-verbose #f)
(define-flag-param compiler-verbose #f)

View File

@ -39,10 +39,7 @@
(call-install #f)
(make-launchers #f)
(make-info-domain #f)
(parallel-build #f)
(make-docs #f)))]
[("-u" "--no-parallel-build") "Do not use parallel build"
(add-flags '((parallel-build #f)))]
[("-j" "--workers") workers "Use <#> parallel-workers"
(add-flags `((parallel-workers ,(string->number workers))))]
[("-n" "--no-zo") "Do not produce .zo files"

View File

@ -658,8 +658,8 @@
(define (move-drscheme-to-end cct)
(call-with-values (lambda () (partition (lambda (x) (not (string=? (cc-name (car x)) "drscheme"))) cct)) append))
(setup-printf #f "--- compiling collections ---")
(match (parallel-build)
[#t
(match (parallel-workers)
[(? (lambda (x) (x . > . 1)))
(compile-cc (collection->cc (list (string->path "racket"))) 0)
(managed-compile-zo (build-path main-collects-dir "setup/parallel-build-worker.rkt"))
(with-specified-mode
@ -671,7 +671,7 @@
(parallel-compile (parallel-workers) setup-fprintf cct))
(for/fold ([gcs 0]) ([cc planet-dirs-to-compile])
(compile-cc cc gcs)))]
[#f
[else
(with-specified-mode
(for/fold ([gcs 0]) ([cc ccs-to-compile])
(compile-cc cc gcs)))]))

View File

@ -54,7 +54,7 @@ both:
# Install (common) ----------------------------------------
SETUP_ARGS = -X "$(DESTDIR)$(collectsdir)" -N "raco setup" -l- setup $(SETUP_OPTIONS) @INSTALL_SETUP_FLAGS@
SETUP_ARGS = -X "$(DESTDIR)$(collectsdir)" -N "raco setup" -l- setup $(PLT_SETUP_OPTIONS) $(PLT_ISO) @INSTALL_SETUP_FLAGS@
install:
$(MAKE) install-@MAIN_VARIANT@