Changeset 3644 for trunk/projects/bos/build.lisp
- Timestamp:
- 07/25/08 18:46:19 (4 months ago)
- Files:
-
- trunk/projects/bos/build.lisp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/projects/bos/build.lisp
r3619 r3644 2 2 (in-package :cl-user) 3 3 4 #+cmu(load (compile-file "../../bknr/patches/patch-around-mop-cmucl19a.lisp")) 4 #+sbcl (require 'asdf) 5 #+sbcl (require 'sb-posix) 5 6 6 #+sbcl(require 'asdf) 7 #+sbcl(require 'sb-posix) 8 9 #+sbcl(assert (eql sb-impl::*default-external-format* :utf-8)) 7 #+sbcl (assert (eql sb-impl::*default-external-format* :utf-8)) 8 #+cmu 9 (setf stream:*default-external-format* :utf-8 10 ext:*gc-verbose* nil 11 *compile-print* nil 12 ext:*bytes-consed-between-gcs* (* 64 1024 1024) 13 *default-pathname-defaults* (pathname (format nil "~A/" (nth-value 1 (unix:unix-current-directory))))) 10 14 11 15 (load (compile-file "../../thirdparty/asdf/asdf.lisp")) 12 16 13 17 ;; cl-gd glue 14 #+darwin (assert (zerop (asdf:run-shell-command "cd ../../thirdparty/cl-gd-0.5.6; make cl-gd-glue.dylib")))15 #-darwin (assert (zerop (asdf:run-shell-command "cd ../../thirdparty/cl-gd-0.5.6; make")))18 #+darwin (assert (zerop (asdf:run-shell-command "cd ../../thirdparty/cl-gd-0.5.6; make cl-gd-glue.dylib"))) 19 #-darwin (assert (zerop (asdf:run-shell-command "cd ../../thirdparty/cl-gd-0.5.6; make"))) 16 20 17 21 ;;; some helpers … … 23 27 asdf:*central-registry* 24 28 :test #'equal)) 25 (directory #p"../../**/*.asd")))29 (directory (merge-pathnames #p"**/*.asd" (truename "../../"))))) 26 30 27 31 (defun read-configuration (pathname) … … 38 42 (asdf:oos 'asdf:load-op :bos.web) 39 43 44 #+sbcl 40 45 (defvar *sbcl-home* (sb-int:sbcl-homedir-pathname)) 41 46 47 #+sbcl 42 48 (defun ensure-sbcl-home () 43 49 (sb-posix:putenv (format nil "SBCL_HOME=~a" *sbcl-home*))) 44 50 45 51 (defun env-ascii-check () 46 #+sbcl(assert (block top 47 (dolist (string (posix-environ) t) 48 (loop for ch across string 49 unless (< 0 (char-code ch) 128) 50 do (return-from top nil)))) 51 nil 52 "We will have a problem if your environment contains anything else than ASCII characters.~ 52 #+sbcl 53 (assert (block top 54 (dolist (string (posix-environ) t) 55 (loop for ch across string 56 unless (< 0 (char-code ch) 128) 57 do (return-from top nil)))) 58 nil 59 "We will have a problem if your environment contains anything else than ASCII characters.~ 53 60 ~%So I'd like to enforce this here.")) 54 61 55 62 (defun start (&key (swank-port 4005)) 56 (ensure-sbcl-home)63 #+sbcl (ensure-sbcl-home) 57 64 (env-ascii-check) 58 65 ;; check for changes that are not yet in the core … … 73 80 (bos.web::start-contract-tree-image-update-daemon) 74 81 (bos.m2::start-postmaster) 75 (bknr.cron::start-cron)) 82 (bknr.cron::start-cron) 83 #+(and cmu mp) 84 (mp::startup-idle-and-top-level-loops)) 76 85 77 86 (defun start-cert-daemon ()
