Newer
Older
Francois-Rene Rideau
committed
(defun output-translations-initialized-p ()
(and *output-translations* t))
(defun clear-output-translations ()
"Undoes any initialization of the output translations.
You might want to call that before you dump an image that would be resumed
with a different configuration, so the configuration would be re-read then."
(setf *output-translations* '())
(values))
Francois-Rene Rideau
committed
(defun resolve-location (x &optional wildenp)
Francois-Rene Rideau
committed
(if (atom x)
Francois-Rene Rideau
committed
(resolve-absolute-location-component x wildenp)
(loop :with path = (resolve-absolute-location-component (car x) nil)
Francois-Rene Rideau
committed
:for (component . morep) :on (cdr x)
Francois-Rene Rideau
committed
:do (setf path (resolve-relative-location-component
path component (and wildenp (not morep))))
Francois-Rene Rideau
committed
:finally (return path))))
Francois-Rene Rideau
committed
(defun resolve-absolute-location-component (x wildenp)
Francois-Rene Rideau
committed
(let* ((r
(etypecase x
(pathname x)
(string (ensure-directory-pathname x))
((eql :home) (user-homedir-pathname))
Francois-Rene Rideau
committed
((eql :user-cache) (resolve-location *user-cache* nil))
((eql :system-cache) (resolve-location *system-cache* nil))
Francois-Rene Rideau
committed
((eql :current-directory) (truenamize *default-pathname-defaults*))
((eql :root) (make-pathname :directory '(:absolute)))))
Francois-Rene Rideau
committed
(s (if (and wildenp (not (pathnamep x)))
(wilden r)
r)))
Francois-Rene Rideau
committed
(unless (absolute-pathname-p s)
(error "Not an absolute pathname ~S" s))
s))
Francois-Rene Rideau
committed
(defun resolve-relative-location-component (super x &optional wildenp)
Francois-Rene Rideau
committed
(let* ((r (etypecase x
(pathname x)
(string x)
((eql :current-directory)
(relativize-pathname-directory
(truenamize *default-pathname-defaults*)))
((eql :implementation) (implementation-identifier))
((eql :implementation-type) (implementation-type))
((eql :uid) (princ-to-string (get-uid)))))
(d (if (pathnamep x) r (ensure-directory-pathname r)))
Francois-Rene Rideau
committed
(s (if (and wildenp (not (pathnamep x)))
(wilden d)
d)))
Francois-Rene Rideau
committed
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
(when (and (absolute-pathname-p s) (not (pathname-match-p s (wilden super))))
(error "pathname ~S is not relative to ~S" s super))
(merge-pathnames s super)))
(defparameter *wild-path*
(make-pathname :directory '(:relative :wild-inferiors)
:name :wild :type :wild :version nil))
(defun wilden (path)
(merge-pathnames *wild-path* path))
(defun location-designator-p (x)
(flet ((componentp (c) (typep c '(or string pathname keyword))))
(or (componentp x) (and (consp x) (every #'componentp x)))))
(defun validate-output-translations-directive (directive)
(unless
(or (member directive '(:inherit-configuration
:ignore-inherited-configuration
:enable-user-cache :disable-cache))
(and (consp directive)
(or (and (length=n-p directive 2)
(or (and (eq (first directive) :include)
(typep (second directive) '(or string pathname)))
(and (location-designator-p (first directive))
(or (location-designator-p (second directive))
(null (second directive))))))
(and (length=n-p directive 1)
(location-designator-p (first directive))))))
(error "Invalid directive ~S~%" directive))
directive)
(defun validate-output-translations-form (form)
(validate-configuration-form
form
:output-translations
'validate-output-translations-directive
"output translations"))
(defun validate-output-translations-file (file)
(validate-configuration-file
file 'validate-output-translations-form "output translations"))
(defun validate-output-translations-directory (directory)
(validate-configuration-directory
directory :output-translations 'validate-output-translations-directive))
(defun parse-output-translations-string (string)
(cond
((or (null string) (equal string ""))
'(:output-translations :inherit-configuration))
((not (stringp string))
(error "environment string isn't: ~S" string))
((eql (char string 0) #\()
(validate-output-translations-form (read-from-string string)))
(t
(loop
:with inherit = nil
:with directives = ()
:with start = 0
:with end = (length string)
:with source = nil
:for i = (or (position #\: string :start start) end) :do
(let ((s (subseq string start i)))
(cond
(source
(push (list source (if (equal "" s) nil s)) directives)
(setf source nil))
((equal "" s)
(when inherit
(error "only one inherited configuration allowed: ~S" string))
(setf inherit t)
(push ':inherit-configuration directives))
(t
(setf source s)))
(setf start (1+ i))
(when (>= start end)
(when source
(error "Uneven number of components in source to destination mapping ~S" string))
(unless inherit
(push ':ignore-inherited-configuration directives))
(return `(:output-translations ,@(nreverse directives)))))))))
(defparameter *default-output-translations*
'(implementation-output-translations
user-output-translations-pathname
user-output-translations-directory-pathname
system-output-translations-pathname
system-output-translations-directory-pathname))
(defparameter *implementation-output-translations*
`(:output-translations
;; If clozure had any precompiled ASDF system, we'd use that:
; #+clozure (,(ccl::ccl-directory) ())
;; SBCL *does* have precompiled ASDF system, so we use this:
#+sbcl (,(getenv "SBCL_HOME") ())
;; All-import, here is where we want user stuff to be:
:inherit-configuration
;; If we want to enable the user cache by default, here would be the place:
:enable-user-cache
))
(defun implementation-output-translations ()
*implementation-output-translations*)
(defparameter *output-translations-file* #p"common-lisp/asdf-output-translations.conf")
(defparameter *output-translations-directory* #p"common-lisp/asdf-output-translations.conf.d/")
(defun user-output-translations-pathname ()
(merge-pathnames *output-translations-file* (user-configuration-directory)))
(defun system-output-translations-pathname ()
(merge-pathnames *output-translations-file* (system-configuration-directory)))
(defun user-output-translations-directory-pathname ()
(merge-pathnames *output-translations-directory* (user-configuration-directory)))
(defun system-output-translations-directory-pathname ()
(merge-pathnames *output-translations-directory* (system-configuration-directory)))
(defun environment-output-translations ()
(getenv "ASDF_OUTPUT_TRANSLATIONS"))
(defgeneric process-output-translations (spec &key inherit collect))
(defmethod process-output-translations ((x symbol) &key
(inherit *default-output-translations*)
collect)
(process-output-translations (funcall x) :inherit inherit :collect collect))
(defmethod process-output-translations ((pathname pathname) &key
(inherit *default-output-translations*)
collect)
(cond
((directory-pathname-p pathname)
(process-output-translations (validate-output-translations-directory pathname)
:inherit inherit :collect collect))
((probe-file pathname)
(process-output-translations (validate-output-translations-file pathname)
:inherit inherit :collect collect))
(t
(inherit-output-translations inherit :collect collect))))
(defmethod process-output-translations ((string string) &key
(inherit *default-output-translations*)
collect)
(process-output-translations (parse-output-translations-string string)
:inherit inherit :collect collect))
(defmethod process-output-translations ((x null) &key
(inherit *default-output-translations*)
collect)
(inherit-output-translations inherit :collect collect))
(defmethod process-output-translations ((form cons) &key
(inherit *default-output-translations*)
collect)
(multiple-value-bind (collect result)
(if collect
(values collect (constantly nil))
(make-collector))
(dolist (directive (cdr (validate-output-translations-form form)))
(process-output-translations-directive directive :inherit inherit :collect collect))
(funcall result)))
(defun inherit-output-translations (inherit &key collect)
(when inherit
(process-output-translations (first inherit) :collect collect :inherit (rest inherit))))
(defun process-output-translations-directive (directive &key inherit collect)
(if (atom directive)
(ecase directive
((:enable-user-cache)
(process-output-translations-directive '(:root :user-cache) :collect collect))
((:disable-cache)
(process-output-translations-directive '(:root :root) :collect collect))
((:inherit-configuration)
(inherit-output-translations inherit :collect collect))
((:ignore-inherited-configuration)
nil))
(let ((src (first directive))
(dst (second directive)))
(if (eq src :include)
(process-output-translations (pathname dst) :inherit nil :collect collect)
Francois-Rene Rideau
committed
(let* ((trusrc (truenamize (resolve-location src t)))
(trudst (if dst (resolve-location dst t) trusrc)))
Francois-Rene Rideau
committed
(funcall collect (list trusrc trudst)))))))
;; Will read the configuration and initialize all internal variables,
;; and return the new configuration.
(defun initialize-output-translations
(&optional (translations *default-output-translations*))
(setf (output-translations)
(inherit-output-translations translations)))
;; checks an initial variable to see whether the state is initialized
;; or cleared. In the former case, return current configuration; in
;; the latter, initialize. ASDF will call this function at the start
;; of (asdf:find-system).
(defun ensure-output-translations ()
(if (output-translations-initialized-p)
(output-translations)
(initialize-output-translations)))
Francois-Rene Rideau
committed
(defun apply-output-translations (path)
Francois-Rene Rideau
committed
(ensure-output-translations)
(setf path (truenamize path))
(loop :for (source destination) :in (car *output-translations*)
:when (pathname-match-p path source)
:return (translate-pathname path source destination)
:finally (return path)))
(defmethod output-files :around ((op operation) (c component))
"Method to rewrite output files to fasl-root"
(mapcar #'apply-output-translations (call-next-method)))
Francois-Rene Rideau
committed
(defun compile-file-pathname* (input-file &rest keys)
(apply-output-translations
(apply #'compile-file-pathname input-file keys)))
;;;; -----------------------------------------------------------------
;;;; Windows shortcut support. Based on:
;;;;
;;;; Jesse Hager: The Windows Shortcut File Format.
;;;; http://www.wotsit.org/list.asp?fc=13
(defparameter *link-initial-dword* 76)
(defparameter *link-guid* #(1 20 2 0 0 0 0 0 192 0 0 0 0 0 0 70))
(defun read-null-terminated-string (s)
(with-output-to-string (out)
(loop :for code = (read-byte s)
:until (zerop code)
:do (write-char (code-char code) out))))
(defun read-little-endian (s &optional (bytes 4))
(loop
:for i :from 0 :below bytes
:sum (ash (read-byte s) (* 8 i))))
(defun parse-file-location-info (s)
(let ((start (file-position s))
(total-length (read-little-endian s))
(end-of-header (read-little-endian s))
(fli-flags (read-little-endian s))
(local-volume-offset (read-little-endian s))
(local-offset (read-little-endian s))
(network-volume-offset (read-little-endian s))
(remaining-offset (read-little-endian s)))
(declare (ignore total-length end-of-header local-volume-offset))
(unless (zerop fli-flags)
(cond
((logbitp 0 fli-flags)
(file-position s (+ start local-offset)))
((logbitp 1 fli-flags)
(file-position s (+ start
network-volume-offset
#x14))))
(concatenate 'string
(read-null-terminated-string s)
(progn
(file-position s (+ start remaining-offset))
(read-null-terminated-string s))))))
(defun parse-windows-shortcut (pathname)
(with-open-file (s pathname :element-type '(unsigned-byte 8))
(handler-case
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
(when (and (= (read-little-endian s) *link-initial-dword*)
(let ((header (make-array (length *link-guid*))))
(read-sequence header s)
(equalp header *link-guid*)))
(let ((flags (read-little-endian s)))
(file-position s 76) ;skip rest of header
(when (logbitp 0 flags)
;; skip shell item id list
(let ((length (read-little-endian s 2)))
(file-position s (+ length (file-position s)))))
(cond
((logbitp 1 flags)
(parse-file-location-info s))
(t
(when (logbitp 2 flags)
;; skip description string
(let ((length (read-little-endian s 2)))
(file-position s (+ length (file-position s)))))
(when (logbitp 3 flags)
;; finally, our pathname
(let* ((length (read-little-endian s 2))
(buffer (make-array length)))
(read-sequence buffer s)
(map 'string #'code-char buffer)))))))
Francois-Rene Rideau
committed
;;;; -----------------------------------------------------------------
;;;; Source Registry Configuration, by Francois-Rene Rideau
;;;; See README.source-registry and https://bugs.launchpad.net/asdf/+bug/485918
(pushnew 'sysdef-source-registry-search *system-definition-search-functions*)
;; Using ack 1.2 exclusions
(defvar *default-exclusions*
'(".bzr" ".cdv" "~.dep" "~.dot" "~.nib" "~.plst"
".git" ".hg" ".pc" ".svn" "CVS" "RCS" "SCCS" "_darcs"
"_sgbak" "autom4te.cache" "cover_db" "_build"))
(defun default-registry ()
())
(defvar *source-registry* ()
"Either NIL (for uninitialized), or a list of one element,
said element itself being a list of directory pathnames where to look for .asd files")
(defun source-registry ()
(car *source-registry*))
(defun (setf source-registry) (x)
(setf *source-registry* (list x)))
(defun source-registry-initialized-p ()
(and *source-registry* t))
(defun clear-source-registry ()
"Undoes any initialization of the source registry.
You might want to call that before you dump an image that would be resumed
with a different configuration, so the configuration would be re-read then."
(setf *source-registry* '())
(values))
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
(defun sysdef-source-registry-search (system)
(ensure-source-registry)
(let ((name (coerce-name system)))
(block nil
(dolist (dir (source-registry))
(let ((defaults (eval dir)))
(when defaults
(cond ((directory-pathname-p defaults)
(let ((file (and defaults
(make-pathname
:defaults defaults :version :newest
:name name :type "asd" :case :local)))
#+(and (or win32 windows) (not :clisp))
(shortcut (make-pathname
:defaults defaults :version :newest
:name name :type "asd.lnk" :case :local)))
(when (and file (probe-file file))
(return file))
#+(and (or win32 windows) (not :clisp))
(when (probe-file shortcut)
(let ((target (parse-windows-shortcut shortcut)))
(when target
(return (pathname target))))))))))))))
Francois-Rene Rideau
committed
(defun validate-source-registry-directive (directive)
Francois-Rene Rideau
committed
(or (member directive '(:default-registry (:default-registry)) :test 'equal)
(destructuring-bind (kw &rest rest) directive
(case kw
((:include :directory :tree)
(and (length=n-p rest 1)
(typep (car rest) '(or pathname string))))
((:exclude)
(every #'stringp rest))
(null rest))))
(error "Invalid directive ~S~%" directive))
Francois-Rene Rideau
committed
(defun validate-source-registry-form (form)
Francois-Rene Rideau
committed
(validate-configuration-form
form :source-registry 'validate-source-registry-directive "a source registry"))
Francois-Rene Rideau
committed
(defun validate-source-registry-file (file)
Francois-Rene Rideau
committed
(validate-configuration-file
file 'validate-source-registry-form "a source registry"))
Francois-Rene Rideau
committed
(defun validate-source-registry-directory (directory)
Francois-Rene Rideau
committed
(validate-configuration-directory
directory :source-registry 'validate-source-registry-directive))
Francois-Rene Rideau
committed
(defun parse-source-registry-string (string)
(cond
((or (null string) (equal string ""))
Francois-Rene Rideau
committed
'(:source-registry :inherit-configuration))
Francois-Rene Rideau
committed
((not (stringp string))
(error "environment string isn't: ~S" string))
((eql (char string 0) #\()
(validate-source-registry-form (read-from-string string)))
(t
Francois-Rene Rideau
committed
:with inherit = nil
:with directives = ()
:with start = 0
:with end = (length string)
:for i = (or (position #\: string :start start) end) :do
(let ((s (subseq string start i)))
(cond
Francois-Rene Rideau
committed
((equal "" s) ; empty element: inherit
Francois-Rene Rideau
committed
(when inherit
(error "only one inherited configuration allowed: ~S" string))
(setf inherit t)
Francois-Rene Rideau
committed
(push ':inherit-configuration directives))
Francois-Rene Rideau
committed
((ends-with s "//")
(push `(:tree ,(subseq s 0 (1- (length s)))) directives))
(t
(push `(:directory ,s) directives)))
(setf start (1+ i))
(when (>= start end)
(unless inherit
(push '(:ignore-inherited-configuration) directives))
(return `(:source-registry ,@(nreverse directives)))))))))
Francois-Rene Rideau
committed
(defun collect-asd-subdirectories (directory &key (exclude *default-exclusions*) collect)
Francois-Rene Rideau
committed
(let* ((files (ignore-errors
(directory (merge-pathnames #P"**/*.asd" directory)
#+sbcl #+sbcl :resolve-symlinks nil
#+clisp #+clisp :circle t)))
Francois-Rene Rideau
committed
(dirs (remove-duplicates (mapcar #'pathname-sans-name+type files) :test #'equal)))
(loop
:for dir :in dirs
Francois-Rene Rideau
committed
:unless (loop :for x :in exclude
:thereis (find x (pathname-directory dir) :test #'equal))
:do (funcall collect dir))))
(defparameter *default-source-registries*
Francois-Rene Rideau
committed
'(environment-source-registry
user-source-registry
user-source-registry-directory
system-source-registry
system-source-registry-directory))
(defparameter *source-registry-file* #p"common-lisp/source-registry.conf")
(defparameter *source-registry-directory* #p"common-lisp/source-registry.conf.d/")
Francois-Rene Rideau
committed
(defun user-source-registry ()
Francois-Rene Rideau
committed
(merge-pathnames *source-registry-file* (user-configuration-directory)))
Francois-Rene Rideau
committed
(defun system-source-registry ()
Francois-Rene Rideau
committed
(merge-pathnames *source-registry-file* (system-configuration-directory)))
Francois-Rene Rideau
committed
(defun user-source-registry-directory ()
Francois-Rene Rideau
committed
(merge-pathnames *source-registry-directory* (user-configuration-directory)))
Francois-Rene Rideau
committed
(defun system-source-registry-directory ()
Francois-Rene Rideau
committed
(merge-pathnames *source-registry-directory* (system-configuration-directory)))
(defun environment-source-registry ()
(getenv "CL_SOURCE_REGISTRY"))
Francois-Rene Rideau
committed
(defgeneric process-source-registry (spec &key inherit collect))
Francois-Rene Rideau
committed
(defmethod process-source-registry ((x symbol) &key
(inherit *default-source-registries*)
collect)
(process-source-registry (funcall x) :inherit inherit :collect collect))
Francois-Rene Rideau
committed
(defmethod process-source-registry ((pathname pathname) &key
(inherit *default-source-registries*)
collect)
(cond
((directory-pathname-p pathname)
(process-source-registry (validate-source-registry-directory pathname)
:inherit inherit :collect collect))
((probe-file pathname)
(process-source-registry (validate-source-registry-file pathname)
:inherit inherit :collect collect))
(t
(inherit-source-registry inherit :collect collect))))
Francois-Rene Rideau
committed
(defmethod process-source-registry ((string string) &key
(inherit *default-source-registries*)
collect)
Francois-Rene Rideau
committed
(process-source-registry (parse-source-registry-string string)
:inherit inherit :collect collect))
Francois-Rene Rideau
committed
(defmethod process-source-registry ((x null) &key
(inherit *default-source-registries*)
collect)
Francois-Rene Rideau
committed
(inherit-source-registry inherit :collect collect))
Francois-Rene Rideau
committed
(defmethod process-source-registry ((form cons) &key
(inherit *default-source-registries*)
collect)
Francois-Rene Rideau
committed
(multiple-value-bind (collect result)
(if collect
(values collect (constantly nil))
(make-collector))
(let ((*default-exclusions* *default-exclusions*))
(dolist (directive (cdr (validate-source-registry-form form)))
(process-source-registry-directive directive :inherit inherit :collect collect)))
(funcall result)))
(defun inherit-source-registry (inherit &key collect)
(when inherit
Francois-Rene Rideau
committed
(process-source-registry (first inherit) :collect collect :inherit (rest inherit))))
Francois-Rene Rideau
committed
(defun process-source-registry-directive (directive &key inherit collect)
Francois-Rene Rideau
committed
(destructuring-bind (kw &rest rest) (if (consp directive) directive (list directive))
Francois-Rene Rideau
committed
(ecase kw
((:include)
(destructuring-bind (pathname) rest
Francois-Rene Rideau
committed
(process-source-registry (pathname pathname) :inherit nil :collect collect)))
Francois-Rene Rideau
committed
((:directory)
(destructuring-bind (pathname) rest
(funcall collect (ensure-directory-pathname pathname))))
((:tree)
(destructuring-bind (pathname) rest
(collect-asd-subdirectories pathname :collect collect)))
((:exclude)
(setf *default-exclusions* rest))
Francois-Rene Rideau
committed
((:default-registry)
(default-registry))
((:inherit-configuration)
(inherit-source-registry inherit :collect collect))
((:ignore-inherited-configuration)
nil))))
;; Will read the configuration and initialize all internal variables,
;; and return the new configuration.
(defun initialize-source-registry ()
Francois-Rene Rideau
committed
(setf (source-registry)
(inherit-source-registry *default-source-registries*)))
;; checks an initial variable to see whether the state is initialized
;; or cleared. In the former case, return current configuration; in
;; the latter, initialize. ASDF will call this function at the start
;; of (asdf:find-system).
(defun ensure-source-registry ()
(if (source-registry-initialized-p)
(source-registry)
(initialize-source-registry)))
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
;;;; -----------------------------------------------------------------
;;;; SBCL hook into REQUIRE
;;;;
#+sbcl
(progn
(defun module-provide-asdf (name)
(handler-bind ((style-warning #'muffle-warning))
(let* ((*verbose-out* (make-broadcast-stream))
(system (asdf:find-system name nil)))
(when system
(asdf:operate 'asdf:load-op name)
t))))
(defun contrib-sysdef-search (system)
(let ((home (getenv "SBCL_HOME")))
(when (and home (not (string= home "")))
(let* ((name (coerce-name system))
(home (truename home))
(contrib (merge-pathnames
(make-pathname :directory `(:relative ,name)
:name name
:type "asd"
:case :local
:version :newest)
home)))
(probe-file contrib)))))
(pushnew
'(let ((home (getenv "SBCL_HOME")))
(when (and home (not (string= home "")))
(merge-pathnames "site-systems/" (truename home))))
*central-registry*)
(pushnew
'(merge-pathnames ".sbcl/systems/"
(user-homedir-pathname))
*central-registry*)
(pushnew 'module-provide-asdf sb-ext:*module-provider-functions*)
(pushnew 'contrib-sysdef-search *system-definition-search-functions*))
Francois-Rene Rideau
committed
;;;; -------------------------------------------------------------------------
;;;; Cleanups after hot-upgrade.
;;;; Things to do in case we're upgrading from a previous version of ASDF.
;;;; See https://bugs.launchpad.net/asdf/+bug/485687
;;;;
;;;; TODO: debug why it's not enough to upgrade from ECL <= 9.11.1
Francois-Rene Rideau
committed
(eval-when (:compile-toplevel :load-toplevel :execute)
#+ecl ;; Support upgrade from before ECL went to 1.369
(when (fboundp 'compile-op-system-p)
(defmethod compile-op-system-p ((op compile-op))
(getf :system-p (compile-op-flags op)))
(defmethod initialize-instance :after ((op compile-op)
&rest initargs
&key system-p &allow-other-keys)
(declare (ignorable initargs))
(when system-p (appendf (compile-op-flags op) (list :system-p system-p))))))
Francois-Rene Rideau
committed
;;;; -----------------------------------------------------------------
;;;; Done!
(when *load-verbose*
Francois-Rene Rideau
committed
(asdf-message ";; ASDF, version ~a" (asdf-version)))
Francois-Rene Rideau
committed
Francois-Rene Rideau
committed
(pushnew :asdf *features*)
Francois-Rene Rideau
committed
;;(pushnew :asdf2 *features*) ;; do that when we reach version 2
Francois-Rene Rideau
committed
Francois-Rene Rideau
committed
(provide :asdf)
Francois-Rene Rideau
committed
;;; Local Variables:
;;; mode: lisp
;;; End: