mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-21 03:00:19 +02:00
autocompiled files before installation go to a cache dir in the builddir
* libguile/load.c (scm_init_load_path): Append a slash after XDG_CACHE_HOME. * meta/gdb-uninstalled-guile.in: * meta/guile.in (XDG_CACHE_HOME): Export this var so we write to a cache within the build directory. Probably we should have a GUILE_CACHE_DIR to be more specific, though. * Makefile.am (clean-local): Clear the cache when making clean.
This commit is contained in:
parent
53a468dd8c
commit
48a0fe4d6b
4 changed files with 10 additions and 3 deletions
|
@ -257,7 +257,7 @@ scm_init_load_path ()
|
|||
"guile/ccache/" SCM_EFFECTIVE_VERSION "-" SCM_OBJCODE_MACHINE_VERSION_STRING
|
||||
|
||||
if ((e = getenv ("XDG_CACHE_HOME")))
|
||||
snprintf (cachedir, sizeof(cachedir), "%s" FALLBACK_DIR, e);
|
||||
snprintf (cachedir, sizeof(cachedir), "%s/" FALLBACK_DIR, e);
|
||||
else if ((e = getenv ("HOME")))
|
||||
snprintf (cachedir, sizeof(cachedir), "%s/.cache/" FALLBACK_DIR, e);
|
||||
#ifdef HAVE_GETPWENT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue