mirror of
https://github.com/golang/go
synced 2024-11-13 15:40:20 -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:
parent
9eda2b9977
commit
eb2163ffbb
@ -26,9 +26,7 @@ See also: go build.
|
|||||||
func init() {
|
func init() {
|
||||||
cmdRun.Run = runRun // break init loop
|
cmdRun.Run = runRun // break init loop
|
||||||
|
|
||||||
cmdRun.Flag.BoolVar(&buildA, "a", false, "")
|
addBuildFlags(cmdRun)
|
||||||
cmdRun.Flag.BoolVar(&buildN, "n", false, "")
|
|
||||||
cmdRun.Flag.BoolVar(&buildX, "x", false, "")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func printStderr(args ...interface{}) (int, error) {
|
func printStderr(args ...interface{}) (int, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user