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);