1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:24:42 -07:00

cmd/dist: fix install cmd/5g on non-arm system

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5689072
This commit is contained in:
Russ Cox 2012-02-22 16:29:05 -05:00
parent ee71afbb55
commit 37decab5a3

View File

@ -808,7 +808,7 @@ install(char *dir)
vuniq(&files);
}
if(!streq(goos, gohostos) || !streq(goarch, gohostarch)) {
if((!streq(goos, gohostos) || !streq(goarch, gohostarch)) && isgo) {
// We've generated the right files; the go command can do the build.
if(vflag > 1)
xprintf("skip build for cross-compile %s\n", dir);