build: fix missing .exe executable names on cross builds

This commit is contained in:
Péter Szilágyi 2016-11-07 12:18:28 +02:00
parent 15c8d46b04
commit 328f0dd631
No known key found for this signature in database
GPG Key ID: 119A76381CCB7DD2
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ func doInstall(cmdline []string) {
if name == "main" {
gobuild := goToolArch(*arch, "build", buildFlags(env)...)
gobuild.Args = append(gobuild.Args, "-v")
gobuild.Args = append(gobuild.Args, []string{"-o", filepath.Join(GOBIN, cmd.Name())}...)
gobuild.Args = append(gobuild.Args, []string{"-o", executablePath(cmd.Name())}...)
gobuild.Args = append(gobuild.Args, "."+string(filepath.Separator)+filepath.Join("cmd", cmd.Name()))
build.MustRun(gobuild)
break