diff options
author | Jason Earl <jearl@notengoamigos.org> | 2013-03-10 23:20:22 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2013-03-10 23:20:22 +0100 |
commit | 988ca6b212fce6d9419d1ffce8f115425ade3a9f (patch) | |
tree | 4e292eaed656a5bd5354818d074d705eb1872b00 /doc/ref | |
parent | a4b4fbbdaa3542e35ea436179200d071b57ff1ca (diff) | |
download | guile-988ca6b212fce6d9419d1ffce8f115425ade3a9f.tar.gz |
add %site-ccache-dir
* libguile/load.h:
* libguile/load.c (scm_sys_site_ccache_dir): New procedure.
* doc/ref/scheme-using.texi (Installing Site Packages):
* doc/ref/api-options.texi (Build Config): Add docs.
Fixes bug 10326.
Diffstat (limited to 'doc/ref')
-rw-r--r-- | doc/ref/api-options.texi | 7 | ||||
-rw-r--r-- | doc/ref/scheme-using.texi | 11 |
2 files changed, 13 insertions, 5 deletions
diff --git a/doc/ref/api-options.texi b/doc/ref/api-options.texi index 173431890..a1575c5af 100644 --- a/doc/ref/api-options.texi +++ b/doc/ref/api-options.texi @@ -96,6 +96,13 @@ your site should be installed. On Unix-like systems, this is usually @file{/usr/local/share/guile/site} or @file{/usr/share/guile/site}. @end deffn +@deffn {Scheme Procedure} %site-ccache-dir +@deffnx {C Function} scm_sys_site_ccache_dir () +Return the directory where users should install compiled @code{.go} +files for use with this version of Guile. Might look something like +@file{/usr/lib/guile/@value{EFFECTIVE-VERSION}/site-ccache}. +@end deffn + @defvar %guile-build-info Alist of information collected during the building of a particular Guile. Entries can be grouped into one of several categories: diff --git a/doc/ref/scheme-using.texi b/doc/ref/scheme-using.texi index b6516bd63..4422c1863 100644 --- a/doc/ref/scheme-using.texi +++ b/doc/ref/scheme-using.texi @@ -752,6 +752,7 @@ list}, or simply @code{guild}. @cindex site path @cindex load path @findex %site-dir +@findex %site-ccache-dir At some point, you will probably want to share your code with other people. To do so effectively, it is important to follow a set of common @@ -783,11 +784,11 @@ find them. As with Scheme files, Guile searches a path to find compiled @code{.go} files, the @code{%load-compiled-path}. By default, this path has two entries: a path for Guile's files, and a path for site packages. You -should install your @code{.go} files into the latter. Currently there -is no procedure to get at this path, which is probably a bug. As in the -previous example, if Guile @value{EFFECTIVE-VERSION} is installed on -your system in @code{/usr/}, then the place to put compiled files for -site packages will be +should install your @code{.go} files into the latter directory, whose +value is returned by invoking the @code{%site-ccache-dir} procedure. As +in the previous example, if Guile @value{EFFECTIVE-VERSION} is installed +on your system in @code{/usr/}, then @code{(%site-ccache-dir)} site +packages will be @code{/usr/lib/guile/@value{EFFECTIVE-VERSION}/site-ccache}. Note that a @code{.go} file will only be loaded in preference to a |