mirror of https://github.com/golang/go.git
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:
parent
f5b600f70c
commit
0e694298e9
|
|
@ -1951,9 +1951,9 @@ func (b *builder) libgcc(p *Package) (string, error) {
|
||||||
return "$LIBGCC", nil
|
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.
|
// 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
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue