Skip to content

Commit ae33414

Browse files
committed
cgo: add more information about gcc output parsing failures
R=r https://golang.org/cl/152084
1 parent c3343ef commit ae33414

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cmd/cgo/gcc.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ func (p *Prog) loadDebugInfo() {
9696
}
9797
}
9898

99+
if nerrors > 0 {
100+
fatal("failed to interpret gcc output:\n%s", stderr)
101+
}
102+
99103
// Extract the types from the DWARF section of an object
100104
// from a well-formed C program. Gcc only generates DWARF info
101105
// for symbols in the object file, so it is not enough to print the

0 commit comments

Comments
 (0)