Commit 37decab5 authored by Russ Cox's avatar Russ Cox

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

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5689072
parent ee71afbb
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment