Changeset 5144
- Timestamp:
- Sep 6, 2006, 3:38:30 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ccl/lib/compile-ccl.lisp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/lib/compile-ccl.lisp
r4996 r5144 462 462 (:darwinx8664 "darwinx8664"))) 463 463 464 (defun rebuild-ccl (&key full clean kernel force (reload t) exit reload-arguments )464 (defun rebuild-ccl (&key full clean kernel force (reload t) exit reload-arguments verbose) 465 465 (when full 466 466 (setq clean t kernel t reload t)) … … 487 487 (format t "~&;Building lisp-kernel ...") 488 488 (with-output-to-string (s) 489 (multiple-value-bind 490 (status exit-code) 491 (external-process-status 492 (run-program "make" 493 (list "-k" "-C" 494 (format nil "lisp-kernel/~a" 495 (kernel-build-directory))) 496 :output s 497 :error s)) 498 (if (and (eq :exited status) (zerop exit-code)) 499 (progn (format t "~&;Kernel built successfully.") (sleep 1)) 500 (error "Error(s) during kernel compilation.~%~a" 501 (get-output-stream-string s)))))) 489 (multiple-value-bind 490 (status exit-code) 491 (external-process-status 492 (run-program "make" 493 (list "-k" "-C" 494 (format nil "lisp-kernel/~a" 495 (kernel-build-directory))) 496 :output s 497 :error s)) 498 (if (and (eq :exited status) (zerop exit-code)) 499 (progn 500 (format t "~&;Kernel built successfully.") 501 (when verbose 502 (format t "~&;kernel build output:~%~a" 503 (get-output-stream-string s))) 504 (sleep 1)) 505 (error "Error(s) during kernel compilation.~%~a" 506 (get-output-stream-string s)))))) 502 507 (compile-ccl (not (null force))) 503 508 (if force (xload-level-0 :force) (xload-level-0)) … … 507 512 (standard-image-name))) 508 513 (with-output-to-string (output) 509 (multiple-value-bind (status exit-code) 510 (external-process-status 511 (run-program 512 (format nil "./~a" (standard-kernel-name)) 513 (list* "--image-name" (standard-boot-image-name) 514 reload-arguments) 515 :input cmd 516 :output output 517 :error output)) 518 (if (and (eq status :exited) 519 (eql exit-code 0)) 520 (format t "~&;Wrote heap image: ~s" 521 (truename (format nil "ccl:~a" 522 (standard-image-name)))) 523 (error "Errors (~s ~s) reloading boot image:~&~a" 524 status exit-code 525 (get-output-stream-string output))))))) 514 (multiple-value-bind (status exit-code) 515 (external-process-status 516 (run-program 517 (format nil "./~a" (standard-kernel-name)) 518 (list* "--image-name" (standard-boot-image-name) 519 reload-arguments) 520 :input cmd 521 :output output 522 :error output)) 523 (if (and (eq status :exited) 524 (eql exit-code 0)) 525 (progn 526 (format t "~&;Wrote heap image: ~s" 527 (truename (format nil "ccl:~a" 528 (standard-image-name)))) 529 (when verbose 530 (format t "~&;Reload heap image output:~%~a" 531 (get-output-stream-string output)))) 532 (error "Errors (~s ~s) reloading boot image:~&~a" 533 status exit-code 534 (get-output-stream-string output))))))) 526 535 (when exit 527 536 (quit)))
Note:
See TracChangeset
for help on using the changeset viewer.
