Commit 0e694298 authored by Benny Siegert's avatar Benny Siegert Committed by Ian Lance Taylor

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
parent f5b600f7
...@@ -1951,9 +1951,9 @@ func (b *builder) libgcc(p *Package) (string, error) { ...@@ -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
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment