summaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-11-23 15:13:48 -0500
committerRuss Cox <rsc@golang.org>2014-11-23 15:13:48 -0500
commitdb6a11ff558add790779fdef118b5ad899f77137 (patch)
treec2b96225a4a0ea4c1ffc93941593b7e1b6aa3d2e /src/cmd
parenta2ad0eafc9de98075da0525d4d8c384658caacb8 (diff)
parent9cc4768f52e6c4a852f863a3a6b982ea71a4ed43 (diff)
downloadgo-db6a11ff558add790779fdef118b5ad899f77137.tar.gz
[dev.cc] all: merge default (95f5614b4648) into dev.cc
TBR=austin CC=golang-codereviews https://codereview.appspot.com/177220044
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/go/tool.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/cmd/go/tool.go b/src/cmd/go/tool.go
index c96161e0f..3f11c3e3d 100644
--- a/src/cmd/go/tool.go
+++ b/src/cmd/go/tool.go
@@ -47,7 +47,7 @@ const toolWindowsExtension = ".exe"
func tool(toolName string) string {
toolPath := filepath.Join(toolDir, toolName)
- if toolIsWindows && toolName != "pprof" {
+ if toolIsWindows {
toolPath += toolWindowsExtension
}
// Give a nice message if there is no tool with that name.
@@ -91,16 +91,6 @@ func runTool(cmd *Command, args []string) {
if toolPath == "" {
return
}
- if toolIsWindows && toolName == "pprof" {
- args = append([]string{"perl", toolPath}, args[1:]...)
- var err error
- toolPath, err = exec.LookPath("perl")
- if err != nil {
- fmt.Fprintf(os.Stderr, "go tool: perl not found\n")
- setExitStatus(3)
- return
- }
- }
if toolN {
fmt.Printf("%s %s\n", toolPath, strings.Join(args[1:], " "))
return