Commit eb2163ff authored by Maxim Pimenov's avatar Maxim Pimenov Committed by Russ Cox

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
parent 9eda2b99
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment