mirror of
https://github.com/golang/go.git
synced 2025-05-29 03:11:26 +00:00
dist: add .exe extension to tour.exe
Fixes #5246. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/8558044
This commit is contained in:
parent
0ccfbea5b0
commit
81063812b4
8
misc/dist/bindist.go
vendored
8
misc/dist/bindist.go
vendored
@ -423,13 +423,13 @@ func (b *Build) tour() error {
|
||||
}
|
||||
|
||||
// Copy gotour binary to tool directory as "tour"; invoked as "go tool tour".
|
||||
gotour := "gotour"
|
||||
ext := ""
|
||||
if runtime.GOOS == "windows" {
|
||||
gotour += ".exe"
|
||||
ext = ".exe"
|
||||
}
|
||||
return cp(
|
||||
filepath.Join(b.root, "pkg", "tool", b.OS+"_"+b.Arch, "tour"),
|
||||
filepath.Join(b.gopath, "bin", gotour),
|
||||
filepath.Join(b.root, "pkg", "tool", b.OS+"_"+b.Arch, "tour"+ext),
|
||||
filepath.Join(b.gopath, "bin", "gotour"+ext),
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user