Commit 0b07effa authored by Albert Strasheim's avatar Albert Strasheim Committed by Ian Lance Taylor

cmd/go: Check error from SWIG link step.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/85070043
parent 8072f46a
...@@ -2522,7 +2522,9 @@ func (b *builder) swigOne(p *Package, file, obj string, cxx bool, intgosize stri ...@@ -2522,7 +2522,9 @@ func (b *builder) swigOne(p *Package, file, obj string, cxx bool, intgosize stri
} }
ldflags := stringList(osldflags[goos], cflags, cgoLDFLAGS, cxxlib) ldflags := stringList(osldflags[goos], cflags, cgoLDFLAGS, cxxlib)
target := filepath.Join(obj, soname) 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 return obj + goFile, cObj, 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