tools/go/loader
Michael Matloob 1f25352b1e go/packages: add cgo support to go1.10 fallback loader
This change moves the cgo support for go loader to a common
internal package that can be reused by go/packages. That
support is used to invoke cgo to process the files returned
by the fallback pre-go1.11 Go list.

The cgo processing does not propagate all of the config correctly.
We're building a go/build.Package to get the cgo command line
invocation and it might be incorrectly configured if the user's
configuration is different from go/build.Default.

Change-Id: I0de3c65cb723587e1551edeb77219614ba9650bf
Reviewed-on: https://go-review.googlesource.com/127816
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2018-08-03 18:01:09 +00:00
..
testdata go/loader: improve robustness in face of input errors 2015-02-02 20:01:59 +00:00
doc.go go/loader: update comment 2016-02-22 20:28:10 +00:00
example_test.go go/loader: only run examples on 1.8 2017-02-17 19:31:53 +00:00
loader.go go/packages: add cgo support to go1.10 fallback loader 2018-08-03 18:01:09 +00:00
loader_test.go go/...: make most tests pass with gccgo 2018-06-08 16:58:49 +00:00
stdlib_test.go tools: updates for minimum Go version 1.6 2017-02-07 21:06:19 +00:00
util.go go/loader: don't treat unsafe specially wrt vendoring 2016-01-08 20:29:04 +00:00