Merge pull request #3239 from karalabe/fix-windows-separators
build: fix missing .exe executable names on cross builds
This commit is contained in:
commit
7e8ad6cad3
@ -182,7 +182,7 @@ func doInstall(cmdline []string) {
|
|||||||
if name == "main" {
|
if name == "main" {
|
||||||
gobuild := goToolArch(*arch, "build", buildFlags(env)...)
|
gobuild := goToolArch(*arch, "build", buildFlags(env)...)
|
||||||
gobuild.Args = append(gobuild.Args, "-v")
|
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()))
|
gobuild.Args = append(gobuild.Args, "."+string(filepath.Separator)+filepath.Join("cmd", cmd.Name()))
|
||||||
build.MustRun(gobuild)
|
build.MustRun(gobuild)
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user