Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hugo Ishimaru
asdf
Commits
dfd6b4af
Commit
dfd6b4af
authored
14 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
1.718: add module provider hook for CMUCL, ECL.
Cleanup a few methods on ECL (moderately tested with cl-launch).
parent
9d0f83b7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
asdf.lisp
+12
-10
12 additions, 10 deletions
asdf.lisp
doc/asdf.texinfo
+2
-2
2 additions, 2 deletions
doc/asdf.texinfo
with
14 additions
and
12 deletions
asdf.lisp
+
12
−
10
View file @
dfd6b4af
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
:test
'equalp
:key
'car
))
:test
'equalp
:key
'car
))
(
let*
((
asdf-version
(
let*
((
asdf-version
;; the 1+ helps the version bumping script discriminate
;; the 1+ helps the version bumping script discriminate
(
subseq
"VERSION:1.71
7
"
(
1+
(
length
"VERSION"
))))
(
subseq
"VERSION:1.71
8
"
(
1+
(
length
"VERSION"
))))
(
existing-asdf
(
find-package
:asdf
))
(
existing-asdf
(
find-package
:asdf
))
(
vername
'
#:*asdf-version*
)
(
vername
'
#:*asdf-version*
)
(
versym
(
and
existing-asdf
(
versym
(
and
existing-asdf
...
@@ -1661,9 +1661,10 @@ recursive calls to traverse.")
...
@@ -1661,9 +1661,10 @@ recursive calls to traverse.")
(
defmethod
perform
:after
((
o
compile-op
)
(
c
cl-source-file
))
(
defmethod
perform
:after
((
o
compile-op
)
(
c
cl-source-file
))
;; Note how we use OUTPUT-FILES to find the binary locations
;; Note how we use OUTPUT-FILES to find the binary locations
;; This allows the user to override the names.
;; This allows the user to override the names.
(
let*
((
input
(
output-files
o
c
))
(
let*
((
files
(
output-files
o
c
))
(
output
(
compile-file-pathname
(
lispize-pathname
(
first
input
))
:type
:fasl
)))
(
object
(
first
files
))
(
c:build-fasl
output
:lisp-files
(
remove
"fas"
input
:key
#'
pathname-type
:test
#'
string=
))))
(
fasl
(
second
files
)))
(
c:build-fasl
fasl
:lisp-files
(
list
object
))))
(
defmethod
perform
:after
((
operation
operation
)
(
c
component
))
(
defmethod
perform
:after
((
operation
operation
)
(
c
component
))
(
setf
(
gethash
(
type-of
operation
)
(
component-operation-times
c
))
(
setf
(
gethash
(
type-of
operation
)
(
component-operation-times
c
))
...
@@ -1699,8 +1700,7 @@ recursive calls to traverse.")
...
@@ -1699,8 +1700,7 @@ recursive calls to traverse.")
(
declare
(
ignorable
operation
))
(
declare
(
ignorable
operation
))
(
let
((
p
(
lispize-pathname
(
component-pathname
c
))))
(
let
((
p
(
lispize-pathname
(
component-pathname
c
))))
#-
:broken-fasl-loader
#-
:broken-fasl-loader
(
list
#-
ecl
(
compile-file-pathname
p
)
(
list
(
compile-file-pathname
p
#+
ecl
:type
#+
ecl
:object
)
#+
ecl
(
compile-file-pathname
p
:type
:object
)
#+
ecl
(
compile-file-pathname
p
:type
:fasl
))
#+
ecl
(
compile-file-pathname
p
:type
:fasl
))
#+
:broken-fasl-loader
(
list
p
)))
#+
:broken-fasl-loader
(
list
p
)))
...
@@ -3281,9 +3281,9 @@ with a different configuration, so the configuration would be re-read then."
...
@@ -3281,9 +3281,9 @@ with a different configuration, so the configuration would be re-read then."
(
initialize-source-registry
)))
(
initialize-source-registry
)))
;;;; -----------------------------------------------------------------
;;;; -----------------------------------------------------------------
;;;; Hook into REQUIRE for
S
BCL, ClozureCL and
A
BCL
;;;; Hook into REQUIRE for
A
BCL, ClozureCL
, CMUCL, ECL
and
S
BCL
;;;;
;;;;
#+
(
or
s
bcl
clozure
a
bcl
)
#+
(
or
a
bcl
clozure
cmu
ecl
s
bcl
)
(
progn
(
progn
(
defun
module-provide-asdf
(
name
)
(
defun
module-provide-asdf
(
name
)
(
handler-bind
(
handler-bind
...
@@ -3298,9 +3298,11 @@ with a different configuration, so the configuration would be re-read then."
...
@@ -3298,9 +3298,11 @@ with a different configuration, so the configuration would be re-read then."
(
load-system
name
)
(
load-system
name
)
t
))))
t
))))
(
pushnew
'module-provide-asdf
(
pushnew
'module-provide-asdf
#+
s
bcl
s
b-ext
:*module-provider-functions*
#+
a
bcl
s
ys:
:*module-provider-functions*
#+
clozure
ccl::*module-provider-functions*
#+
clozure
ccl::*module-provider-functions*
#+
abcl
sys::*module-provider-functions*
))
#+
cmu
ext:*module-provider-functions*
#+
ecl
si:*module-provider-functions*
#+
sbcl
sb-ext:*module-provider-functions*
))
;;;; -------------------------------------------------------------------------
;;;; -------------------------------------------------------------------------
;;;; Cleanups after hot-upgrade.
;;;; Cleanups after hot-upgrade.
...
...
This diff is collapsed.
Click to expand it.
doc/asdf.texinfo
+
2
−
2
View file @
dfd6b4af
...
@@ -552,7 +552,7 @@ by evaluating the following Lisp form:
...
@@ -552,7 +552,7 @@ by evaluating the following Lisp form:
(asdf:load-system :@var
{
foo
}
)
(asdf:load-system :@var
{
foo
}
)
@end example
@end example
On some implementations (namely ABCL, Clozure CL and SBCL),
On some implementations (namely ABCL, Clozure CL
, CMUCL, ECL
and SBCL),
ASDF hooks into the @code
{
CL:REQUIRE
}
facility
ASDF hooks into the @code
{
CL:REQUIRE
}
facility
and you can just use:
and you can just use:
...
@@ -2788,7 +2788,7 @@ if you allow such configuration.
...
@@ -2788,7 +2788,7 @@ if you allow such configuration.
@item
@item
If your system provides a mechanism to hook into @code
{
CL:REQUIRE
}
,
If your system provides a mechanism to hook into @code
{
CL:REQUIRE
}
,
then it would be nice to add ASDF to this hook the same way that
then it would be nice to add ASDF to this hook the same way that
S
BCL, CCL and
A
BCL do it.
A
BCL, CCL
, CMUCL, ECL
and
S
BCL do it.
@item
@item
You may, like SBCL, have ASDF be implicitly used to require systems
You may, like SBCL, have ASDF be implicitly used to require systems
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment