aboutsummaryrefslogtreecommitdiff
path: root/src/clean.bash
AgeCommit message (Collapse)Author
2020-02-26build: in clean.bash, look for 'go' in GOROOT/bin instead of GOBINNikson Kanti Paul
Updates #14340 Updates #32674 Fixes #36659 Change-Id: I5bfaba4e53dab894d113dd5065794d66f1a25f2b Reviewed-on: https://go-review.googlesource.com/c/go/+/215478 Reviewed-by: Bryan C. Mills <bcmills@google.com>
2015-08-05build: clean current tree in clean.bashRuss Cox
Otherwise clean.bash cleans $GOROOT, which might be something else entirely. Fixes #12003. Change-Id: I2ad5369017dde6db25f0c0514bc27c33d0a8bf54 Reviewed-on: https://go-review.googlesource.com/13251 Reviewed-by: David Crawshaw <crawshaw@golang.org>
2015-06-18build: fix clean scriptsShenghou Ma
Fixes #10734. Change-Id: I7a2c580b87749225668fbd7a005412c8eee6824d Reviewed-on: https://go-review.googlesource.com/9823 Reviewed-by: Russ Cox <rsc@golang.org>
2012-02-15build: fix clean.bashMikio Hara
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5672052
2012-02-04build: use cmd/distRuss Cox
R=bradfitz, ality, r, r, iant, mikioh.mikioh CC=golang-dev https://golang.org/cl/5615058
2012-01-30build: remove Make.pkg, Make.toolRuss Cox
Consequently, remove many package Makefiles, and shorten the few that remain. gomake becomes 'go tool make'. Turn off test phases of run.bash that do not work, flagged with $BROKEN. Future CLs will restore these, but this seemed like a big enough CL already. R=golang-dev, r CC=golang-dev https://golang.org/cl/5601057
2011-12-15test/bench/go1: first draft of Go 1 benchmark suiteRuss Cox
I have included a few important microbenchmarks, but the overall intent is to have mostly end-to-end benchmarks timing real world operations. The jsondata.go file is a summary of agl's activity in various open source repositories. It gets used as test data for many of the benchmarks. Everything links into one binary (even the test data) so that it is easy to run the benchmarks on many computers: there is just one file to copy around. R=golang-dev, r, bradfitz, adg, r CC=golang-dev https://golang.org/cl/5484071
2011-12-13test/garbage: move to test/bench/garbageRuss Cox
(These are benchmarks for the garbage collector, not tests.) R=golang-dev, adg CC=golang-dev https://golang.org/cl/5484070
2011-12-13fix build, sorryRuss Cox
TBR=r CC=golang-dev https://golang.org/cl/5488066
2011-12-11Housekeeping: Cleaning up the clean-up process.Lucio De Re
src/clean.bash: Add clean-ups for previously overlooked directories. doc/codelab/wiki/Makefile: Dropped "index.html" from CLEANFILES so it will not be deleted on cleaning. R=golang-dev, r CC=golang-dev https://golang.org/cl/5476050
2011-03-21build: reenable clean.bash without gomakeGustavo Niemeyer
This change had already been made in revision 7371, but was then undone with changes in revision 7606. R=golang-dev, rsc1 CC=golang-dev https://golang.org/cl/4239064
2011-03-07runtime: scheduler, cgo reorganizationRuss Cox
* Change use of m->g0 stack (aka scheduler stack). * Provide runtime.mcall(f) to invoke f() on m->g0 stack. * Replace scheduler loop entry with runtime.mcall(schedule). Runtime.mcall eliminates the need for fake scheduler states that exist just to run a bit of code on the m->g0 stack (Grecovery, Gstackalloc). The elimination of the scheduler as a loop that stops and starts using gosave and gogo fixes a bad interaction with the way cgo uses the m->g0 stack. Cgo runs external (gcc-compiled) C functions on that stack, and then when calling back into Go, it sets m->g0->sched.sp below the added call frames, so that other uses of m->g0's stack will not interfere with those frames. Unfortunately, gogo (longjmp) back to the scheduler loop at this point would end up running scheduler with the lower sp, which no longer points at a valid stack frame for a call to scheduler. If scheduler then wrote any function call arguments or local variables to where it expected the stack frame to be, it would overwrite other data on the stack. I realized this possibility while debugging a problem with calling complex Go code in a Go -> C -> Go cgo callback. This wasn't the bug I was looking for, it turns out, but I believe it is a real bug nonetheless. Switching to runtime.mcall, which only adds new frames to the stack and never jumps into functions running in existing ones, fixes this bug. * Move cgo-related code out of proc.c into cgocall.c. * Add very large comment describing cgo call sequences. * Simpilify, regularize cgo function implementations and names. * Add test suite as misc/cgo/test. Now the Go -> C path calls cgocall, which calls asmcgocall, and the C -> Go path calls cgocallback, which calls cgocallbackg. The shuffling, which affects mainly the callback case, moves most of the callback implementation to cgocallback running on the m->curg stack (not the m->g0 scheduler stack) and only while accounted for with $GOMAXPROCS (between calls to exitsyscall and entersyscall). The previous callback code did not block in startcgocallback's approximation to exitsyscall, so if, say, the garbage collector were running, it would still barge in and start doing things like call malloc. Similarly endcgocallback's approximation of entersyscall did not call matchmg to kick off new OS threads when necessary, which caused the bug in issue 1560. Fixes #1560. R=iant CC=golang-dev https://golang.org/cl/4253054
2011-03-02build: simplify clean.bashDave Cheney
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4257045
2011-02-04build: allow clean.bash to work on fresh checkoutRuss Cox
Must be invoked as ./clean.bash --gomake make (or --gomake gmake, depending on the name of GNU make). R=niemeyer CC=golang-dev https://golang.org/cl/4023065
2010-12-08fix build: more libcgo referencesRuss Cox
R=r CC=golang-dev https://golang.org/cl/3448043
2010-08-30build: remove unnecessary references to GOBIN and GOROOTChristian Himpel
All scripts and makefiles assume that GOBIN is correctly set in PATH. R=rsc CC=golang-dev https://golang.org/cl/2043041
2010-08-19clean.bash: fix standalone runsChristopher Wedgwood
R=rsc CC=golang-dev https://golang.org/cl/1933043
2010-07-30misc/builder: support for uploading tarballs to googlecodeAndrew Gerrand
R=rsc CC=golang-dev https://golang.org/cl/1784042
2010-07-22build: clean.bash to check that GOOS and GOARCH are setAndrew Gerrand
R=rsc CC=golang-dev https://golang.org/cl/1843046
2010-02-09add simple garbage collector benchmarks to dashboardRuss Cox
R=agl1 CC=golang-dev https://golang.org/cl/207043
2009-12-13clean.bash: stop if $GOROOT is not setChristopher Wedgwood
Doing rm -rf /pkg/.. blindly isn't nice. It could have unintended consequences. Secondly set bash to abort on (unexpected) errors. R=dho, rsc CC=golang-dev https://golang.org/cl/176056
2009-12-11Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/srcDevon H. O'Dell
This change removes the necessity to have GOBIN in $PATH, and also doesn't assume that the build is being run from $GOROOT/src. This is a minimal set of necessary changes to get Go to build happily from the FreeBSD ports collection. R=rsc CC=golang-dev https://golang.org/cl/171044
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes #115. R=rsc, dsymonds1 https://golang.org/cl/157067
2009-11-14Build changes to support work on the BSDs.Devon H. O'Dell
This does still contain some FreeBSD-specific bits, but it's a pain to do partial diffs. R=rsc https://golang.org/cl/152138
2009-11-01misc cleanupRuss Cox
R=r http://go/go-review/1016017
2009-10-22fix build after Mercurial move.Russ Cox
various missing or incorrect files. R=r CC=go-dev http://go/go-review/1014004
2009-10-20Move usr/dsymonds/iterable to src/pkg/exp/iterable.David Symonds
Remove remainder of usr/dsymonds. R=rsc,r APPROVED=r DELTA=685 (275 added, 409 deleted, 1 changed) OCL=35810 CL=35933
2009-10-14fix build:Russ Cox
avoid infinite loop when cd fails. TBR=r OCL=35750 CL=35750
2009-10-08Only clean the relevant installed files, not everything. ThisIan Lance Taylor
should let a 6g build and an 8g build be done in sequence without stepping on each other. R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=35478 CL=35481
2009-10-03clean moreRuss Cox
R=r DELTA=40 (9 added, 3 deleted, 28 changed) OCL=35277 CL=35305
2009-08-14rename libmach_amd64 libmachRob Pike
R=rsc OCL=33273 CL=33276
2009-06-09mv src/lib to src/pkgRob Pike
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
2009-06-06move src/runtime -> src/lib/runtime;Russ Cox
hand-edited files. R=r DELTA=125 (77 added, 16 deleted, 32 changed) OCL=30001 CL=30008
2009-05-20clear out pkg tree in clean.bash.Russ Cox
rename place-holder to _place_holder_ so it can be avoided. R=r DELTA=5 (2 added, 2 deleted, 1 changed) OCL=29093 CL=29097
2009-03-24fix build:Russ Cox
install runtime lib in correct location. fix one bad type definition in defs.h. clear out $GOROOT/lib in clean.bash. TBR=r OCL=26691 CL=26691
2008-11-24add hash to build; rm pkg/* in clean.bashRuss Cox
R=r DELTA=3 (3 added, 0 deleted, 0 changed) OCL=19935 CL=19937
2008-11-21convert lib to a Makefile,Russ Cox
mainly for "make bufio.install". R=r DELTA=144 (80 added, 62 deleted, 2 changed) OCL=19760 CL=19799
2008-09-26move src/syscall to src/lib/syscall.Russ Cox
enforce rule: all kernel data structures and constants go in syscall module. move things that should be in syscall out of net. make net a single package. R=r OCL=15985 CL=15994
2008-09-19add gobuild.Russ Cox
use gobuild-generated Makefile for math and os. other makefile tweaks. move math/main.go to test/math.go R=r OCL=15529 CL=15537
2008-09-18make Makefiles safe for parallel makeRuss Cox
use -j4 (4-way parallel) in make.bash. halves time for make.bash on r45 also add libregexp, acid to default build R=r DELTA=90 (39 added, 37 deleted, 14 changed) OCL=15485 CL=15487
2008-08-07include syscall in default buildRob Pike
fix an issue with autolib names by compiling to target location print a bit more when compiling R=gri OCL=13988 CL=13988
2008-07-09build packages automaticallyRob Pike
SVN=126577
2008-06-13plan9 line numbers and line tableKen Thompson
SVN=122793
2008-06-12import the plan 9 libraries libc (lib9) and libbio into the tree.Rob Pike
remove the dependency on /home/r. SVN=122482