]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix -n output in runtime/internal/atomic
authorJay Conrod <jayconrod@google.com>
Fri, 21 Dec 2018 17:23:18 +0000 (12:23 -0500)
committerJay Conrod <jayconrod@google.com>
Fri, 21 Dec 2018 20:44:41 +0000 (20:44 +0000)
commit00055152d320f60476ca5db1e7da4fc89f94834e
treeddd659add607472a0b45a3e2994244d81a3c8994
parent429bae715876c69853bb63db1733f580e293c916
cmd/go: fix -n output in runtime/internal/atomic

When building runtime/internal/atomic, the toolchain writes a symabis2
file. This file is read back in, filtered, and appended to the symabis
file. This breaks with -n, since the symabis2 file is never written.

With this change, when -n is used, an equivalent "grep" command is
printed instead. The output for -x is unchanged.

Fixes #29346

Change-Id: Id25e06e06364fc6689e71660d000f09c649c4f0c
Reviewed-on: https://go-review.googlesource.com/c/155480
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/work/gc.go
src/cmd/go/testdata/script/build_runtime_gcflags.txt [new file with mode: 0644]