]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.power64] cmd/dist: recognize power64 and power64le as GOHOSTARCH
authorShenghou Ma <minux@golang.org>
Wed, 6 Aug 2014 20:16:28 +0000 (16:16 -0400)
committerShenghou Ma <minux@golang.org>
Wed, 6 Aug 2014 20:16:28 +0000 (16:16 -0400)
LGTM=rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/125760043

src/cmd/dist/unix.c

index 8b943a2d9577a0eabf45c07dfe18b6b70e2cefa0..668b189cacd253e8b69499cf06b6cc585cb2e240 100644 (file)
@@ -708,6 +708,10 @@ main(int argc, char **argv)
                        gohostarch = "386";
                else if(contains(u.machine, "arm"))
                        gohostarch = "arm";
+               else if(contains(u.machine, "ppc64le"))
+                       gohostarch = "power64le";
+               else if(contains(u.machine, "ppc64"))
+                       gohostarch = "power64";
                else
                        fatal("unknown architecture: %s", u.machine);
        }