re PR go/85630 (GCC 8.1.0: Filesystem pollution during build: .cache dir in $HOME)
authorIan Lance Taylor <iant@golang.org>
Fri, 4 May 2018 16:23:51 +0000 (16:23 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 4 May 2018 16:23:51 +0000 (16:23 +0000)
PR go/85630
* Makefile.am (CHECK_ENV): Set GOCACHE.
(ECHO_ENV): Update for setting of GOCACHE.
* Makefile.in: Rebuild.

From-SVN: r259937

gotools/ChangeLog
gotools/Makefile.am
gotools/Makefile.in

index e96be448f42b023d0ea406a16e2a6b10a4c71f1f..cac11df05acf3abff9115c3bce90e0de24a79563 100644 (file)
@@ -1,3 +1,10 @@
+2018-05-04  Ian Lance Taylor  <iant@golang.org>
+
+       PR go/85630
+       * Makefile.am (CHECK_ENV): Set GOCACHE.
+       (ECHO_ENV): Update for setting of GOCACHE.
+       * Makefile.in: Rebuild.
+
 2018-21-03  Uros Bizjak  <ubizjak@gmail.com>
 
        * Makefile.am (check-runtime): Pass -test.timeout
index fb5db639ef8dfc0cfa4a8bd48508e7d81a62da6b..ba5f283e33f7d8a351be0811f9ce0e973f9be835 100644 (file)
@@ -218,11 +218,13 @@ CHECK_ENV = \
        export LD_LIBRARY_PATH; \
        GOROOT=$${abs_libgodir}; \
        export GOROOT; \
+       GOCACHE=$(abs_builddir)/gocache-test; \
+       export GOCACHE; \
        fl1="FA"; fl2="IL"; fl="$${fl1}$${fl2}";
 
 # ECHO_ENV is a variant of CHECK_ENV to put into a testlog file.
 # It assumes that abs_libgodir is set.
-ECHO_ENV = PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GCCGO='$(abs_builddir)/check-gccgo' CC='$(abs_builddir)/check-gcc' GCCGOTOOLDIR='$(abs_builddir)' GO_TESTING_GOTOOLS=yes LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GOROOT=`echo $${abs_libgodir}`
+ECHO_ENV = PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GCCGO='$(abs_builddir)/check-gccgo' CC='$(abs_builddir)/check-gcc' GCCGOTOOLDIR='$(abs_builddir)' GO_TESTING_GOTOOLS=yes LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GOROOT=`echo $${abs_libgodir} GOCACHE='$(abs_builddir)/gocache-test'`
 
 # check-go-tool runs `go test cmd/go` in our environment.
 check-go-tool: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
index 13b13eed2865f79e0e9ff1a60bfdd5cee806730c..8e60e9f26ef1492aca19cd715531caa3b1b2390e 100644 (file)
@@ -370,12 +370,14 @@ MOSTLYCLEANFILES = \
 @NATIVE_TRUE@  export LD_LIBRARY_PATH; \
 @NATIVE_TRUE@  GOROOT=$${abs_libgodir}; \
 @NATIVE_TRUE@  export GOROOT; \
+@NATIVE_TRUE@  GOCACHE=$(abs_builddir)/gocache-test; \
+@NATIVE_TRUE@  export GOCACHE; \
 @NATIVE_TRUE@  fl1="FA"; fl2="IL"; fl="$${fl1}$${fl2}";
 
 
 # ECHO_ENV is a variant of CHECK_ENV to put into a testlog file.
 # It assumes that abs_libgodir is set.
-@NATIVE_TRUE@ECHO_ENV = PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GCCGO='$(abs_builddir)/check-gccgo' CC='$(abs_builddir)/check-gcc' GCCGOTOOLDIR='$(abs_builddir)' GO_TESTING_GOTOOLS=yes LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GOROOT=`echo $${abs_libgodir}`
+@NATIVE_TRUE@ECHO_ENV = PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GCCGO='$(abs_builddir)/check-gccgo' CC='$(abs_builddir)/check-gcc' GCCGOTOOLDIR='$(abs_builddir)' GO_TESTING_GOTOOLS=yes LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GOROOT=`echo $${abs_libgodir} GOCACHE='$(abs_builddir)/gocache-test'`
 all: all-am
 
 .SUFFIXES:
@@ -635,8 +637,8 @@ distclean-generic:
 maintainer-clean-generic:
        @echo "This command is intended for maintainers to use"
        @echo "it deletes files that may require special tools to rebuild."
-@NATIVE_FALSE@uninstall-local:
 @NATIVE_FALSE@install-exec-local:
+@NATIVE_FALSE@uninstall-local:
 clean: clean-am
 
 clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \