Previous CL (
5674043) omit the case where runtime/cgo itself is out-of-date.
Fixes #2936 (again).
R=rsc
CC=golang-dev
https://golang.org/cl/
5674048
"os/exec"
"path"
"path/filepath"
+ "runtime"
"sort"
"strings"
"text/template"
}
}
+ // translate C to runtime/cgo
+ if deps["C"] {
+ delete(deps, "C")
+ deps["runtime/cgo"] = true
+ if buildContext.GOOS == runtime.GOOS && buildContext.GOARCH == runtime.GOARCH {
+ deps["cmd/cgo"] = true
+ }
+ }
// Ignore pseudo-packages.
- delete(deps, "C")
delete(deps, "unsafe")
all := []string{}