diff --git a/src/cmd/dist/build.c b/src/cmd/dist/build.c index 7285b47bfa3..1b68883ce4b 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);