1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:00:22 -07:00
go/src
Russ Cox 1499c78281 build: tidy intermediate files during build
This CL changes the behavior of 'make install' and 'make test'
in the src/cmd directory and the src/pkg directory to have
each recursive make clean up after itself immediately.

It does the same in test/run, removing $F.$A and $A.out
(the common byproducts) between runs.

On machines with slow disks and aggressive kernel caching,
cleaning up immediately can mean that the intermediate
objects never get written to disk.

This change eliminates almost all the disk waiting during
all.bash on my laptop (a Thinkpad X201s with an SSD running Linux).

147.50u 19.95s 277.34r	before
148.53u 21.64s 179.59r	after

R=golang-dev, r, iant2
CC=golang-dev
https://golang.org/cl/4413042
2011-04-13 16:24:57 -04:00
..
cmd build: use gcc -Werror 2011-04-13 16:18:09 -04:00
lib9 lib9, libmach: Change GOOS references to GOHOSTOS 2011-03-15 14:42:18 -04:00
libbio build: test for _WIN32, not _MINGW32 2010-09-08 22:20:35 -04:00
libmach lib9, libmach: Change GOOS references to GOHOSTOS 2011-03-15 14:42:18 -04:00
pkg build: tidy intermediate files during build 2011-04-13 16:24:57 -04:00
all-qemu.bash build: add all-qemu.bash, handful of arm fixes 2011-03-27 23:39:42 -04:00
all.bash build: $GOBIN defaults to $GOROOT/bin 2010-08-24 20:00:33 -04:00
clean.bash build: reenable clean.bash without gomake 2011-03-21 00:27:50 -03:00
env.bash build: move $GOBIN ahead of /bin, /usr/bin in build $PATH 2011-02-28 14:55:27 -05:00
make.bash build: diagnose Ubuntu's buggy copy of gold 2011-03-18 18:23:00 -04:00
Make.ccmd build: remove intermediate yacc files in Make.ccmd 2010-12-14 12:22:40 -05:00
Make.clib build: Allow archiver to be specified in the environment with HOST_AR. 2010-12-07 15:28:26 -05:00
Make.cmd build: remove duplicate dependency in Make.cmd 2011-03-14 12:33:44 -04:00
Make.common build: tidy intermediate files during build 2011-04-13 16:24:57 -04:00
Make.inc goinstall: handle $(GOOS) and $(GOARCH) in filenames 2011-03-07 10:54:53 -05:00
Make.pkg src/pkg/Makefile: trim per-directory make output except on failure 2011-04-06 15:06:28 -04:00
quietgcc.bash build: use gcc -Werror 2011-04-13 16:18:09 -04:00
run.bash test/bench: enable build and test on Windows 2011-04-08 10:43:25 +10:00
sudo.bash build: no required environment variables 2010-08-18 10:08:49 -04:00
version.bash version.bash: strip changeset hash from 'hg tags' output 2011-04-04 10:06:09 +10:00