]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: fix install cmd/5g on non-arm system
authorRuss Cox <rsc@golang.org>
Wed, 22 Feb 2012 21:29:05 +0000 (16:29 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 22 Feb 2012 21:29:05 +0000 (16:29 -0500)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5689072

src/cmd/dist/build.c

index 7285b47bfa3947676aee703f8152fbe19ce71192..1b68883ce4b3efa4c20e61589173655ee2a7c5dc 100644 (file)
@@ -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);