]> Cypherpunks repositories - gostls13.git/commit
make gobuild failures more readable.
authorRuss Cox <rsc@golang.org>
Sat, 30 May 2009 01:12:04 +0000 (18:12 -0700)
committerRuss Cox <rsc@golang.org>
Sat, 30 May 2009 01:12:04 +0000 (18:12 -0700)
commit91395ae68945ffcf6383954cb5b1377c3ac10d50
tree295f6981c2b8ff73f172deb7093d5ed289fa260f
parent705f9af38eb45d7f2281a95dec552571963c11af
make gobuild failures more readable.

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
src/cmd/ar/ar.c
src/cmd/gobuild/gobuild.go
src/cmd/gobuild/util.go