]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cgo: print the right error if mangling detection gccgo fails
authorIan Lance Taylor <iant@golang.org>
Sun, 20 Jan 2019 15:46:18 +0000 (07:46 -0800)
committerIan Lance Taylor <iant@golang.org>
Sun, 20 Jan 2019 19:20:04 +0000 (19:20 +0000)
Change-Id: I2324f6f51d2bf8a4ae1b139b3933bc78dfa75835
Reviewed-on: https://go-review.googlesource.com/c/158718
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/cgo/out.go

index 0985a7e72ead99b6cd7f43ce0836d0c33472011d..00e2f9769cd93b3938360f4948d06ade91c26f25 100644 (file)
@@ -1255,7 +1255,7 @@ func determineGccgoManglingScheme() bool {
        cmd := exec.Command(gccgocmd, "-S", "-o", "-", gofilename)
        buf, cerr := cmd.CombinedOutput()
        if cerr != nil {
-               fatalf("%s", err)
+               fatalf("%s", cerr)
        }
 
        // New mangling: expect go.l..u00e4ufer.Run