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
Didier Verna
asdf
Commits
e4586127
Commit
e4586127
authored
9 years ago
by
Robert Goldman
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation for :BUILD-OPERATION
parent
68ed031d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/asdf.texinfo
+21
-3
21 additions, 3 deletions
doc/asdf.texinfo
with
21 additions
and
3 deletions
doc/asdf.texinfo
+
21
−
3
View file @
e4586127
...
...
@@ -1005,12 +1005,17 @@ Starting with ASDF 3.1, this function @code{make} is also available.
The default behaviour is to load the system as if by @code
{
load-system
}
;
but system authors can override this default in their system definition
they may specify an alternate operation as the intended use of their system,
with a @code
{
:build-operation
}
argument in the @code
{
defsystem
}
form,
and an intended output pathname for that operation with @code
{
:build-pathname
}
.
with a @code
{
:build-operation
}
option in the @code
{
defsystem
}
form
(@pxref
{
The defsystem grammar, build-operation
}
),
and an intended output pathname for that operation with
@code
{
:build-pathname
}
.
@c Document :build-operation in the defsystem section.
@c Document in the extension section that for richer programmatic access, you may instead use an overriding
@c @code
{
(defmethod component-depends-on ((o build-op) (s system)) ...)
}
.
@c @code
{
(defmethod component-depends-on ((o build-op) (s system))
@c ...)
}
.
This function is experimental and largely untested. Use at your own risk.
@end defun
@cindex build-operation
@defun require-system system @Arest
{}
keys @Akey
{}
@AallowOtherKeys
{}
@code
{
require-system
}
skips any update to systems that have already been loaded,
...
...
@@ -1391,6 +1396,7 @@ system-definition := ( defsystem system-designator @var{system-option}* )
system-option := :defsystem-depends-on system-list
| :weakly-depends-on @var
{
system-list
}
| :class class-name (see discussion below)
| :build-operation @var
{
operation-name
}
| system-option
| module-option
| option
...
...
@@ -1508,6 +1514,18 @@ must be loaded @emph{before} the system definition is processed.
Typically this is used to load an ASDF extension that is used in the
system definition.
@subsection Build-operation
@cindex :build-operation
The @code
{
:build-operation
}
option to @code
{
defsystem
}
allows the
programmer to specify an operation that will be applied, in place of
@code
{
load-op
}
when @code
{
make
}
(@pxref
{
Convenience Functions, make
}
)
is run on the system. The option
value should be the name of an operation. E.g., @code
{
:build-operation doc-op
}
This feature is
experimental and largely untested. Use at your own risk.
@subsection Weakly depends on
@cindex :weakly-depends-on
...
...
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