mirror of https://github.com/golang/go.git
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:
parent
ee71afbb55
commit
37decab5a3
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue