Skip to content

Commit

Permalink
cmd/go: fix invalid go pack command line in the output of go build -x
Browse files Browse the repository at this point in the history
Fixes #7262

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/76110043
  • Loading branch information
atomsymbol-notifications committed Mar 14, 2014
1 parent 1483747 commit 22aa549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/go/build.go
Expand Up @@ -1625,10 +1625,10 @@ func (gcToolchain) pack(b *builder, p *Package, objDir, afile string, ofiles []s
appending := false
if _, err := os.Stat(absAfile); err == nil {
appending = true
cmd = "rqP"
cmd = "r"
}

cmdline := stringList("pack", cmd, b.work, absAfile, absOfiles)
cmdline := stringList("pack", cmd, absAfile, absOfiles)

if appending {
if buildN || buildX {
Expand Down

0 comments on commit 22aa549

Please sign in to comment.