Skip to content
Snippets Groups Projects
compile-1.lisp 2.01 KiB
Newer Older
cer's avatar
cer committed
;; -*- mode: common-lisp; package: user -*-
;;
;;				-[]-
;; 
;; copyright (c) 1985, 1986 Franz Inc, Alameda, CA  All rights reserved.
;; copyright (c) 1986-1991 Franz Inc, Berkeley, CA  All rights reserved.
;;
;; The software, data and information contained herein are proprietary
;; to, and comprise valuable trade secrets of, Franz, Inc.  They are
;; given in confidence by Franz, Inc. pursuant to a written license
;; agreement, and may be stored and used only in accordance with the terms
;; of such license.
;;
;; Restricted Rights Legend
;; ------------------------
;; Use, duplication, and disclosure of the software, data and information
;; contained herein by any agency, department or entity of the U.S.
;; Government are subject to restrictions of Restricted Rights for
;; Commercial Software developed at private expense as specified in FAR
;; 52.227-19 or DOD FAR Supplement 252.227-7013 (c) (1) (ii), as
;; applicable.
;;
cer's avatar
cer committed
;; $fiHeader: compile-1.lisp,v 1.5 92/05/07 13:13:46 cer Exp Locker: cer $
cer's avatar
cer committed

(in-package :user)

(setq *ignore-package-name-case* t)
(set-case-mode :case-insensitive-lower)
(setf (sys:gsgc-switch :print) t)
(setf (sys:gsgc-switch :stats) t)

cer's avatar
cer committed
(setq comp:generate-call-count-code-switch
  (named-function |(> debug 1)| 
		  (lambda (safety size speed debug)
		    (declare (ignore safety size speed))
		    (> debug 1))))
(setq comp:declared-fixnums-remain-fixnums-switch
  (named-function |(> speed 2)|
		  (lambda (safety size speed debug)
		    (declare (ignore safety size debug))
		    (> speed 2))))

cer's avatar
cer committed
(setq *compile-print* nil)

cer's avatar
cer committed
(unless (find-package 'clim-defsystem)
cer's avatar
cer committed
  (compile-file-if-needed "sys/defsystem")
  (let ((*enable-package-locked-errors* nil))
    (load "sys/defsystem")))

cer's avatar
cer committed


cer's avatar
cer committed
(defun compile-it (sys)
cer's avatar
cer committed
  (unless (ignore-errors (clim-defsys::find-system sys))
cer's avatar
cer committed
    (load "sys/sysdcl"))
cer's avatar
cer committed
  (clim-defsys::compile-system sys :propagate t)
cer's avatar
cer committed
  (tenuring
cer's avatar
cer committed
   (clim-defsys::load-system sys))
cer's avatar
cer committed
  (compile-file-if-needed "test/test-suite")
  (load "demo/sysdcl")
cer's avatar
cer committed
  (clim-defsys::compile-system 'clim-demo :propagate t))
cer's avatar
cer committed