mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 06:46:50 +01:00
build: Set XDG_CACHE_HOME to avoid loading stale .go files.
Fixes <http://bugs.gnu.org/24120>. Reported by myglc2 <myglc2@gmail.com>. * Makefile.am (make-go): Set XDG_CACHE_HOME.
This commit is contained in:
parent
23431ad9d5
commit
d92e23dc9d
1 changed files with 3 additions and 1 deletions
|
@ -389,11 +389,13 @@ CLEANFILES = \
|
||||||
# there that are newer than the local .scm files (for instance because the
|
# there that are newer than the local .scm files (for instance because the
|
||||||
# user ran 'make install' recently). When that happens, we end up loading
|
# user ran 'make install' recently). When that happens, we end up loading
|
||||||
# those previously-installed .go files, which may be stale, thereby breaking
|
# those previously-installed .go files, which may be stale, thereby breaking
|
||||||
# the whole thing.
|
# the whole thing. Likewise, set 'XDG_CACHE_HOME' to avoid loading possibly
|
||||||
|
# stale files from ~/.cache/guile/ccache.
|
||||||
%.go: make-go ; @:
|
%.go: make-go ; @:
|
||||||
make-go: $(MODULES) guix/config.scm guix/tests.scm
|
make-go: $(MODULES) guix/config.scm guix/tests.scm
|
||||||
$(AM_V_at)echo "Compiling Scheme modules..." ; \
|
$(AM_V_at)echo "Compiling Scheme modules..." ; \
|
||||||
unset GUILE_LOAD_COMPILED_PATH ; \
|
unset GUILE_LOAD_COMPILED_PATH ; \
|
||||||
|
XDG_CACHE_HOME=/nowhere \
|
||||||
host=$(host) srcdir="$(top_srcdir)" \
|
host=$(host) srcdir="$(top_srcdir)" \
|
||||||
$(top_builddir)/pre-inst-env \
|
$(top_builddir)/pre-inst-env \
|
||||||
$(GUILE) -L "$(top_builddir)" -L "$(top_srcdir)" \
|
$(GUILE) -L "$(top_builddir)" -L "$(top_srcdir)" \
|
||||||
|
|
Loading…
Reference in a new issue