summaryrefslogtreecommitdiff
path: root/src/cmd/go/build.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-12-05 16:24:20 -0500
committerRuss Cox <rsc@golang.org>2014-12-05 16:24:20 -0500
commit2c77ac0cd1a89e7966203f8f519a92fa19f0d66d (patch)
treec170ecaa6cef10da190be6b6ea9bb39d9cbe48d8 /src/cmd/go/build.go
parentbac1f5694bd02047e8de86ff16f8481ceaedc1f4 (diff)
downloadgo-2c77ac0cd1a89e7966203f8f519a92fa19f0d66d.tar.gz
runtime: generate windows callback list with go generate
This is the last system-dependent file written by cmd/dist. They are all now written by go generate. cmd/dist is not needed to start building package runtime for a different system anymore. Now all the generated files can be assumed generated, so delete the clumsy hacks in cmd/api. Re-enable api check in run.bash. LGTM=bradfitz R=bradfitz CC=golang-codereviews https://codereview.appspot.com/185040044
Diffstat (limited to 'src/cmd/go/build.go')
-rw-r--r--src/cmd/go/build.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go
index 5dcaa04a1..58fc98d84 100644
--- a/src/cmd/go/build.go
+++ b/src/cmd/go/build.go
@@ -813,7 +813,8 @@ func (b *builder) build(a *action) (err error) {
}
if a.p.Standard && a.p.ImportPath == "runtime" && buildContext.Compiler == "gc" &&
- !hasString(a.p.SFiles, "zsys_"+buildContext.GOOS+"_"+buildContext.GOARCH+".s") {
+ (!hasString(a.p.GoFiles, "zgoos_"+buildContext.GOOS+".go") ||
+ !hasString(a.p.GoFiles, "zgoarch_"+buildContext.GOARCH+".go")) {
return fmt.Errorf("%s/%s must be bootstrapped using make%v", buildContext.GOOS, buildContext.GOARCH, defaultSuffix())
}