tools/go/gccgoimporter
Andrew Wilkins f8200537d8 go.tools/go/gccgoimporter: use gccgo -dumpversion
GccgoInstallation.InitFromDriver currently parses
the output of gccgo -### to get the gcc version,
target triple, and library paths. At least with
Ubuntu's stock libgo5 package, the search path for
.gox files derived from the version is incorrect.

gccgo uses the DEFAULT_TARGET_VERSION macro when
constructing the search path; this value can be
retrieved from gccgo via the "-dumpversion" flag.

Fixes golang/go#7772.

LGTM=iant, gri
R=golang-codereviews, iant, gri
CC=golang-codereviews
https://golang.org/cl/88150043
2014-04-17 13:40:42 -07:00
..
testdata go.tools/go/gccgoimporter: importer for gccgo export data 2014-01-08 09:00:50 -08:00
gccgoinstallation.go go.tools/go/gccgoimporter: use gccgo -dumpversion 2014-04-17 13:40:42 -07:00
gccgoinstallation_test.go go.tools/go/gccgoimporter: importer for gccgo export data 2014-01-08 09:00:50 -08:00
importer.go go.tools/go/gccgoimporter: backported some changes from godex implementation 2014-03-28 14:24:35 -07:00
importer_test.go go.tools/go/gccgoimporter: importer for gccgo export data 2014-01-08 09:00:50 -08:00
parser.go go.tools/go/*: fix breakage caused by removal of types.NewPackage parameter. 2014-02-20 20:11:00 -05:00
parser_test.go go.tools/go/gccgoimporter: importer for gccgo export data 2014-01-08 09:00:50 -08:00