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:
parent
8072f46abd
commit
0b07effab1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user