]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add build flag -toolexec
authorRuss Cox <rsc@golang.org>
Tue, 27 Jan 2015 01:58:17 +0000 (20:58 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 29 Jan 2015 16:25:53 +0000 (16:25 +0000)
commit83c10b204d619d18100716c9588404200acdf6e0
treea34b1780b1eba798bd5cf7af1ae9adfe1ec80241
parent0e80b2e082db784c55ec26ed997226e11c4f5f46
cmd/go: add build flag -toolexec

Like the -exec flag, which specifies a program to use to run a built executable,
the -toolexec flag specifies a program to use to run a tool like 5a, 5g, or 5l.

This flag enables running the toolchain under common testing environments,
such as valgrind.

This flag also enables the use of custom testing environments or the substitution
of alternate tools. See https://godoc.org/rsc.io/toolstash for one possibility.

Change-Id: I256aa7af2d96a4bc7911dc58151cc2155dbd4121
Reviewed-on: https://go-review.googlesource.com/3351
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/go/build.go
src/cmd/go/doc.go
src/cmd/go/fix.go
src/cmd/go/get.go
src/cmd/go/vet.go