From 37decab5a31f6418ae52d4548d06b2022d99c72f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 22 Feb 2012 16:29:05 -0500 Subject: [PATCH] cmd/dist: fix install cmd/5g on non-arm system R=golang-dev, r CC=golang-dev https://golang.org/cl/5689072 --- src/cmd/dist/build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);