From: Russ Cox Date: Wed, 22 Feb 2012 21:29:05 +0000 (-0500) Subject: cmd/dist: fix install cmd/5g on non-arm system X-Git-Tag: weekly.2012-02-22~10 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=37decab5a31f6418ae52d4548d06b2022d99c72f;p=gostls13.git cmd/dist: fix install cmd/5g on non-arm system R=golang-dev, r CC=golang-dev https://golang.org/cl/5689072 --- diff --git a/src/cmd/dist/build.c b/src/cmd/dist/build.c index 7285b47bfa..1b68883ce4 100644 --- a/src/cmd/dist/build.c +++ b/src/cmd/dist/build.c @@ -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);