1
0
mirror of https://github.com/golang/go synced 2024-11-23 03:50:03 -07:00

cmd/go/internal/work: properly ignore error

Change-Id: Id0e8d170730d946b60c661d90bc98d0ca7545391
GitHub-Last-Rev: 19fed775b7
GitHub-Pull-Request: golang/go#30001
Reviewed-on: https://go-review.googlesource.com/c/160425
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Leon Klingele 2019-01-30 17:34:52 +00:00 committed by Bryan C. Mills
parent 49bc5690a3
commit 3fe97ba0ff

View File

@ -268,7 +268,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
fmt.Fprintf(h, "compile %s %q %q\n", id, forcedGccgoflags, p.Internal.Gccgoflags)
fmt.Fprintf(h, "pkgpath %s\n", gccgoPkgpath(p))
if len(p.SFiles) > 0 {
id, err = b.gccgoToolID(BuildToolchain.compiler(), "assembler-with-cpp")
id, _ = b.gccgoToolID(BuildToolchain.compiler(), "assembler-with-cpp")
// Ignore error; different assembler versions
// are unlikely to make any difference anyhow.
fmt.Fprintf(h, "asm %q\n", id)