Changeset 13686
- Timestamp:
- May 6, 2010, 5:19:00 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/source/tools/asdf.lisp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/tools/asdf.lisp
r13681 r13686 50 50 (cl:in-package :cl-user) 51 51 52 (declaim (optimize (speed 2) (debug 2) (safety 3))53 #+sbcl (sb-ext:muffle-conditions sb-ext:compiler-note))54 55 52 #+ecl (require :cmp) 56 53 … … 71 68 (let* ((asdf-version 72 69 ;; the 1+ helps the version bumping script discriminate 73 (subseq "VERSION:1.71 7" (1+ (length "VERSION"))))70 (subseq "VERSION:1.719" (1+ (length "VERSION")))) 74 71 (existing-asdf (find-package :asdf)) 75 72 (vername '#:*asdf-version*) … … 1175 1172 (defmethod find-component ((component component) (name symbol)) 1176 1173 (if name 1177 (find-component component ( stringname))1174 (find-component component (coerce-name name)) 1178 1175 component)) 1179 1176 … … 1662 1659 ;; Note how we use OUTPUT-FILES to find the binary locations 1663 1660 ;; This allows the user to override the names. 1664 (let* ((input (output-files o c)) 1665 (output (compile-file-pathname (lispize-pathname (first input)) :type :fasl))) 1666 (c:build-fasl output :lisp-files (remove "fas" input :key #'pathname-type :test #'string=)))) 1661 (let* ((files (output-files o c)) 1662 (object (first files)) 1663 (fasl (second files))) 1664 (c:build-fasl fasl :lisp-files (list object)))) 1667 1665 1668 1666 (defmethod perform :after ((operation operation) (c component)) … … 1700 1698 (let ((p (lispize-pathname (component-pathname c)))) 1701 1699 #-:broken-fasl-loader 1702 (list #-ecl (compile-file-pathname p) 1703 #+ecl (compile-file-pathname p :type :object) 1700 (list (compile-file-pathname p #+ecl :type #+ecl :object) 1704 1701 #+ecl (compile-file-pathname p :type :fasl)) 1705 1702 #+:broken-fasl-loader (list p))) … … 2403 2400 ,@`(#+lispworks ,(try (sys:get-folder-path :common-appdata) "common-lisp/config/") 2404 2401 ;;; read-windows-registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\AppData 2405 #+(not cygwin) 2406 ,(try (or (getenv "USERPROFILE") (user-homedir)) 2407 "Application Data/common-lisp/config/")) 2402 ,(try (getenv "APPDATA") "common-lisp/config/")) 2408 2403 ,(try (user-homedir) ".config/common-lisp/"))))) 2409 2404 (defun system-configuration-directories () … … 2477 2472 2478 2473 (defvar *user-cache* 2479 (or 2480 (let ((h (getenv "XDG_CACHE_HOME"))) 2481 (and h `(,h "common-lisp" :implementation))) 2482 #+(and windows lispworks) 2483 (let ((h (sys:get-folder-path :common-appdata))) ;; no :common-caches in Windows??? 2484 (and h `(,h "common-lisp" "cache"))) 2485 #+(and (or win32 windows mswindows mingw32) (not cygwin)) 2486 ;;; read-windows-registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Cache 2487 (let ((h (or (getenv "USERPROFILE") (user-homedir)))) 2488 (and h `(,h "Local Settings" "Temporary Internet Files" "common-lisp"))) 2489 '(:home ".cache" "common-lisp" :implementation))) 2474 (flet ((try (x &rest sub) (and x `(,x ,@sub)))) 2475 (or 2476 (try (getenv "XDG_CACHE_HOME") "common-lisp" :implementation) 2477 #+(and (or win32 windows mswindows mingw32) (not cygwin)) 2478 (try (getenv "APPDATA") "common-lisp" "cache" :implementation) 2479 '(:home ".cache" "common-lisp" :implementation)))) 2490 2480 (defvar *system-cache* 2491 (or 2492 #+(and windows lispworks) 2493 (let ((h (sys:get-folder-path :common-appdata))) ;; no :common-caches in Windows??? 2494 (and h `(,h "common-lisp" "cache"))) 2495 #+(and (or win32 windows mswindows mingw32) (not cygwin)) 2496 (let ((h (or (getenv "USERPROFILE") (user-homedir)))) 2497 (and h `(,h "Local Settings" "Temporary Internet Files" "common-lisp"))) 2498 #+(or unix cygwin) 2499 '("/var/cache/common-lisp" :uid :implementation))) 2481 ;; No good default, plus there's a security problem 2482 ;; with other users messing with such directories. 2483 *user-cache*) 2500 2484 2501 2485 (defun output-translations () … … 3171 3155 (dirs (cons datahome (split-string datadirs :separator ":")))) 3172 3156 #+(and (or win32 windows mswindows mingw32) (not cygwin)) 3173 ((datahome 3174 #+lispworks (sys:get-folder-path :common-appdata) 3175 #-lispworks (try (or (getenv "USERPROFILE") (user-homedir)) 3176 "Application Data")) 3157 ((datahome (getenv "APPDATA")) 3177 3158 (datadir 3178 3159 #+lispworks (sys:get-folder-path :local-appdata) … … 3282 3263 3283 3264 ;;;; ----------------------------------------------------------------- 3284 ;;;; Hook into REQUIRE for SBCL, ClozureCL and ABCL3265 ;;;; Hook into REQUIRE for ABCL, ClozureCL, CMUCL, ECL and SBCL 3285 3266 ;;;; 3286 #+(or sbcl clozure abcl)3267 #+(or abcl clozure cmu ecl sbcl) 3287 3268 (progn 3288 3269 (defun module-provide-asdf (name) … … 3299 3280 t)))) 3300 3281 (pushnew 'module-provide-asdf 3301 #+ sbcl sb-ext:*module-provider-functions*3282 #+abcl sys::*module-provider-functions* 3302 3283 #+clozure ccl::*module-provider-functions* 3303 #+abcl sys::*module-provider-functions*)) 3284 #+cmu ext:*module-provider-functions* 3285 #+ecl si:*module-provider-functions* 3286 #+sbcl sb-ext:*module-provider-functions*)) 3304 3287 3305 3288 ;;;; -------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.
