mirror of
https://github.com/golang/go
synced 2024-11-21 22:34:48 -07:00
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
2
src/cmd/dist/build.c
vendored
2
src/cmd/dist/build.c
vendored
@ -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
Block a user