summaryrefslogtreecommitdiff
path: root/src/cmd/gobuild
AgeCommit message (Collapse)AuthorFilesLines
2009-08-12rm gobuildRuss Cox5-834/+0
R=r DELTA=827 (0 added, 826 deleted, 1 changed) OCL=33117 CL=33120
2009-08-04fix buildRob Pike1-2/+2
R=gri,rsc OCL=32748 CL=32748
2009-08-03this time really clean up a TODORob Pike1-24/+4
R=rsc DELTA=28 (0 added, 20 deleted, 8 changed) OCL=32676 CL=32684
2009-07-28Support use of $GOBINDIR to override $HOME/binPhil Pennock1-3/+4
R=r,gri,rsc APPROVED=rsc DELTA=53 (12 added, 6 deleted, 35 changed) OCL=31822 CL=32282
2009-07-16ast:Robert Griesemer1-6/+1
- renamed Program -> SourceFile - added Package node representing the AST for an entire package - added filter function to create a source file mimicking the interface of an entire package parser: - parser entry to parse entire packages - unified naming of parser entry points - factored out entry points into new file (interface.go) gofmt: - extended to accept single .go files, and package paths: gofmt file.go // formatting of a single file gofmt -x file.go // interface of a single file gofmt -x ./MyPackage // interface of a local package gofmt -x math // interface of a $GOROOT relative package Various adjustments in dependent files, documentation. R=rsc DELTA=634 (369 added, 153 deleted, 112 changed) OCL=31743 CL=31748
2009-07-14update remaining files to match new scanner/parser interfaceRobert Griesemer1-1/+1
and use shared error handling infrastructure R=rsc DELTA=109 (3 added, 86 deleted, 20 changed) OCL=31600 CL=31605
2009-06-29fix gobuild bugRob Pike1-1/+4
R=rsc DELTA=4 (3 added, 0 deleted, 1 changed) OCL=30845 CL=30845
2009-06-26Getenv: almost no one wants the error, so make it return a string that may ↵Rob Pike2-8/+7
be empty. Getenverror is the new name for the old routine that returns an error too. R=rsc DELTA=35 (7 added, 7 deleted, 21 changed) OCL=30818 CL=30821
2009-06-25Change os.Error convention:Russ Cox1-2/+2
echo back context of call in error if likely to be useful. For example, if os.Open("/etc/passwd", os.O_RDONLY) fails with syscall.EPERM, it returns as the os.Error &PathError{ Op: "open", Path: "/etc/passwd" Error: os.EPERM } which formats as open /etc/passwd: permission denied Not converted: datafmt go/... google/... regexp tabwriter template R=r DELTA=1153 (561 added, 156 deleted, 436 changed) OCL=30738 CL=30781
2009-06-25add ./ to imports where necessaryRuss Cox3-5/+5
R=r DELTA=51 (4 added, 4 deleted, 43 changed) OCL=30759 CL=30778
2009-06-23fix gobuild.Russ Cox2-3/+6
errors introduced in CL 30601 R=austin DELTA=6 (3 added, 0 deleted, 3 changed) OCL=30663 CL=30665
2009-06-22avoid pointer-to-slice operations in gobuildRuss Cox2-13/+15
R=r DELTA=19 (3 added, 1 deleted, 15 changed) OCL=30591 CL=30601
2009-06-18use multiline string literal in gobuildRuss Cox1-75/+76
R=r DELTA=76 (1 added, 0 deleted, 75 changed) OCL=30497 CL=30510
2009-06-09mv src/lib to src/pkgRob Pike1-2/+2
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
2009-06-05more build refinements:Russ Cox2-16/+8
* use new Make.$GOARCH files in gobuild. * rename 6ar to arch-generic gopack. * place objects in $GOROOT/pkg/$GOOS_$GOARCH (makes cross-compiling easier, and no one ever types these paths by hand anyway). R=r DELTA=29 (6 added, 8 deleted, 15 changed) OCL=29923 CL=29967
2009-06-04more 386 runtime fixes.Russ Cox1-3/+7
can pass many tests; current stumbling block is an 8l bug. R=r DELTA=122 (83 added, 8 deleted, 31 changed) OCL=29872 CL=29876
2009-05-29make gobuild failures more readable.Russ Cox2-29/+62
1. ar reports names of objects with duplicate text symbols. 2. gobuild only shows first line of error output for each failed command. 3. gobuild ignores files that begin with ascii non-alphanumeric non _. ; gobuild $ 6g -I _obj gobuild.go gobuild.go:150: PackageImports: undefined $ 6g -I _obj makefile.go makefile.go:102: ShellString: undefined $ 6g -I _obj util.go util.go:114: syntax error near zzz gobuild: stalemate ; ; gobuild $ 6ar grc _obj/gobuild.a util.6 util1.6 duplicate text symbol: util1.6 and util.6: gobuild·Build $ 6g -I _obj gobuild.go gobuild.go:150: PackageImports: undefined $ 6g -I _obj makefile.go makefile.go:102: ShellString: undefined gobuild: stalemate ; R=r DELTA=95 (49 added, 9 deleted, 37 changed) OCL=29625 CL=29640
2009-05-18- changed parser to return os.Error, removed ErrorHandlerRobert Griesemer1-7/+4
- added IsValid predicate to token.Position - updated pretty, godoc, gobuild - updated/expanded test cases R=rsc DELTA=265 (97 added, 78 deleted, 90 changed) OCL=28961 CL=29005
2009-05-08gobuild: command printing bug fixRuss Cox1-1/+1
R=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=28583 CL=28590
2009-05-08implications of stricter type equality:Russ Cox1-2/+2
if both types are named, they must be the same type (arising from the same declaration). R=r,gri DELTA=44 (21 added, 4 deleted, 19 changed) OCL=28436 CL=28577
2009-05-08move things out of sys into os and runtimeRuss Cox2-2/+2
R=r OCL=28569 CL=28573
2009-05-08Name change to improve embeddability:Rob Pike1-4/+4
io.Read->io.Reader io.Write,Close,etc.->io.Writer,Closer etc. R=rsc DELTA=190 (0 added, 0 deleted, 190 changed) OCL=28525 CL=28535
2009-04-17Step 1 of the Big Error Shift: make os.Error an interface and replace ↵Rob Pike3-7/+7
*os.Errors with os.Errors. lib/template updated to use new setup; its clients also updated. Step 2 will make os's error support internally much cleaner. R=rsc OCL=27586 CL=27586
2009-04-16build packages in obj/ subdirectory that mimics $GOROOT/pkg.Russ Cox4-18/+115
for example, if building in src/lib/container, objects go in obj/container/, so that 6g -Iobj will find "container/vector". install packages in hierarchy in $GOROOT. this change only updates gobuild. another change will have to update all the sources to refer to "container/vector" etc and regenerate all the Makefiles. there are some pretty lame functions here (e.g., Mkdir, Remove, the Getenv("PWD")) but i will implement better ones in another CL. R=r DELTA=117 (99 added, 2 deleted, 16 changed) OCL=27550 CL=27574
2009-04-16rewrite gobuild in go.Russ Cox6-600/+717
R=r DELTA=1305 (704 added, 590 deleted, 11 changed) OCL=27546 CL=27548
2009-02-15insert ${GOOS} and ${GOARCH} inRuss Cox1-3/+9
command-line comment. R=r DELTA=11 (6 added, 0 deleted, 5 changed) OCL=25051 CL=25051
2008-11-24gobuild:Russ Cox1-3/+8
recognize "// package foo" in non-go files recognize "gobuild: ignore" to exclude from build R=r DELTA=10 (7 added, 2 deleted, 1 changed) OCL=19878 CL=19905
2008-11-19refine gobuild: the files must be *_test.go not *test.goRob Pike1-2/+2
this causes complications R=rsc DELTA=1724 (849 added, 856 deleted, 19 changed) OCL=19667 CL=19667
2008-11-19change naming convention for tests fromRob Pike1-2/+2
test*.go to *test.go R=rsc DELTA=1747 (864 added, 855 deleted, 28 changed) OCL=19666 CL=19666
2008-11-19gobuild: add coverage rule, ignore files in package main.Russ Cox1-0/+9
R=r DELTA=55 (41 added, 11 deleted, 3 changed) OCL=19594 CL=19598
2008-11-19leave 6.out around after gotest;Russ Cox1-1/+1
delete it in make clean. R=r DELTA=10 (0 added, 0 deleted, 10 changed) OCL=19542 CL=19581
2008-11-18gobuild changes.Russ Cox1-168/+343
* handles multiple packages per directory * scans directory for files if given no arguments * infers package name * includes test rule invoking gotest R=r DELTA=746 (444 added, 150 deleted, 152 changed) OCL=19504 CL=19521
2008-11-13* 6l:Russ Cox1-6/+23
if an object in an archive tries to refer to a file in its original source directory, ignore it. * 6ar: fix bug if archive is empty. * gobuild: build archive in current directory. * math: use new gobuild Makefile. * test/math.go: rename to mathest.go, add // run line, make it run. R=r DELTA=494 (277 added, 203 deleted, 14 changed) OCL=19090 CL=19171
2008-09-25gobuild -m: replace value of $GOARCH and $GOOSRuss Cox1-2/+40
in Makefile with $(GOARCH) and $(GOOS) R=r DELTA=40 (38 added, 0 deleted, 2 changed) OCL=15905 CL=15908
2008-09-19add gobuild.Russ Cox2-0/+360
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