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
48dec773
Commit
48dec773
authored
10 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Contrib: a trick to build an ASDF system from an external build system.
parent
458d4050
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/fast-compile-op.lisp
+30
-0
30 additions, 0 deletions
contrib/fast-compile-op.lisp
with
30 additions
and
0 deletions
contrib/fast-compile-op.lisp
0 → 100644
+
30
−
0
View file @
48dec773
;; fast-compile-op: compile just one file in the current process,
;; loading all dependencies as source.
;; How to use it:
;; (1) your build system compiles all your system's dependencies as bundle.
;; (2) For each component in the system, invoke a process that
;; (a) loads all the transitive dependencies as bundles
;; (b) use register-preloaded-system
;; to tell ASDF the direct dependencies are loaded
;; (c) use fast-compile-op on each of the components in the system
;; (3) when they are all done, combine the fasls in a bundle.
#+
sbcl
(
setf
sb-ext:*evaluator-mode*
:interpret
)
(
defclass
fast-compile-op
(
basic-compile-op
selfward-operation
)
((
selfward-operation
:initform
'prepare-source-op
)))
(
defmethod
action-description
((
o
fast-compile-op
)
(
c
component
))
(
declare
(
ignorable
o
))
(
format
nil
(
compatfmt
"~@<fast compiling ~3i~_~A~@:>"
)
c
))
(
defmethod
perform
((
o
fast-compile-op
)
(
c
component
))
(
let
(
#+
sbcl
(
sb-ext:*evaluator-mode*
:compile
))
(
perform
(
make-operation
'compile-op
)
c
)))
(
defmethod
output-files
((
o
fast-compile-op
)
(
c
component
))
(
output-files
(
make-operation
'compile-op
)
c
))
(
defmethod
input-files
((
o
fast-compile-op
)
(
c
component
))
(
input-files
(
make-operation
'compile-op
)
c
))
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