Commit 764880e2 authored by David Symonds's avatar David Symonds

cmd/api: set compiler for all build contexts.

The generated syscall files for Windows are still breaking "go tool api"
(unknown function []byte); I'll look at fixing that separately.

Fixes #3285.

R=bradfitz
CC=golang-dev
https://golang.org/cl/5777062
parent cd7ae05d
......@@ -52,6 +52,12 @@ var contexts = []*build.Context{
{GOOS: "windows", GOARCH: "386"},
}
func init() {
for _, c := range contexts {
c.Compiler = build.Default.Compiler
}
}
func contextName(c *build.Context) string {
s := c.GOOS + "-" + c.GOARCH
if c.CgoEnabled {
......
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