(if (not (member target '("native" "svm" "C" "C-old" "C2native" "C2svm")))
(error "Unknown build target:" target))
(load-make-config)
- (%exit
+ (exit
(call-with-current-continuation ;throw here to unwind all
(lambda (abort-job)
(bind-condition-handler (list condition-type:error)
(log "# "(emacs-friendly-timestamp)"\n")
(write-condition-report condition (current-output-port))
(newline)
- (flush-output)
- (abort-job 2))
+ (flush-output-port)
+ (abort-job #f))
(lambda ()
(with-^G-interrupt-handler
(named-lambda (job-^G-interrupt-handler)
- (abort-job 3))
+ (abort-job #f))
(lambda ()
(devops:make* target)
- 0))))))))
+ #t))))))))
(define (devops:make* target)
(let* ((prefix (or (get-environment-variable "PWD")
deffns))))
(define (pmodel/find-package pmodel package-name)
- (find-matching-item (pmodel/packages pmodel)
- (lambda (p) (equal? package-name (package/name p)))))
+ (filter (lambda (p) (equal? package-name (package/name p)))
+ (pmodel/packages pmodel)))
(define (pmodel/global-exports pmodel)
(define (global-exports package)