1
0
mirror of https://github.com/golang/go synced 2024-11-20 04:54:44 -07:00

cmd/go: do not fail if libgcc does not exist

(This is a patch from the pkgsrc Go package.)

LGTM=iant
R=golang-codereviews, iant, joerg.sonnenberger, dave
CC=golang-codereviews, joerg
https://golang.org/cl/108340043
This commit is contained in:
Benny Siegert 2014-07-10 14:35:04 -07:00 committed by Ian Lance Taylor
parent f5b600f70c
commit 0e694298e9

View File

@ -1951,9 +1951,9 @@ func (b *builder) libgcc(p *Package) (string, error) {
return "$LIBGCC", nil
}
// clang might not be able to find libgcc, and in that case,
// The compiler might not be able to find libgcc, and in that case,
// it will simply return "libgcc.a", which is of no use to us.
if strings.Contains(gccCmd[0], "clang") && !filepath.IsAbs(string(f)) {
if !filepath.IsAbs(string(f)) {
return "", nil
}