1
0
mirror of https://github.com/golang/go synced 2024-11-12 00:20:22 -07:00

cmd/go: honour buildflags in go run

Either documentation or implementation
of go run's flags is wrong currently.
This change assumes the documentation
to be right.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5752054
This commit is contained in:
Maxim Pimenov 2012-03-06 09:33:35 -05:00 committed by Russ Cox
parent 9eda2b9977
commit eb2163ffbb

View File

@ -26,9 +26,7 @@ See also: go build.
func init() {
cmdRun.Run = runRun // break init loop
cmdRun.Flag.BoolVar(&buildA, "a", false, "")
cmdRun.Flag.BoolVar(&buildN, "n", false, "")
cmdRun.Flag.BoolVar(&buildX, "x", false, "")
addBuildFlags(cmdRun)
}
func printStderr(args ...interface{}) (int, error) {