1
0
mirror of https://github.com/golang/go synced 2024-11-12 06:20:22 -07:00

cmd/go: Check error from SWIG link step.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/85070043
This commit is contained in:
Albert Strasheim 2014-04-07 12:59:55 -07:00 committed by Ian Lance Taylor
parent 8072f46abd
commit 0b07effab1

View File

@ -2522,7 +2522,9 @@ func (b *builder) swigOne(p *Package, file, obj string, cxx bool, intgosize stri
}
ldflags := stringList(osldflags[goos], cflags, cgoLDFLAGS, cxxlib)
target := filepath.Join(obj, soname)
b.run(p.Dir, p.ImportPath, nil, b.gccCmd(p.Dir), "-o", target, gccObj, extraObj, ldflags)
if err := b.run(p.Dir, p.ImportPath, nil, b.gccCmd(p.Dir), "-o", target, gccObj, extraObj, ldflags); err != nil {
return "", "", err
}
return obj + goFile, cObj, nil
}