mirror of https://github.com/golang/go.git
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:
parent
9eda2b9977
commit
eb2163ffbb
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue