]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist, go/build: add power64, power64le to known GOARCH lists
authorRuss Cox <rsc@golang.org>
Wed, 6 Aug 2014 18:58:17 +0000 (14:58 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 6 Aug 2014 18:58:17 +0000 (14:58 -0400)
LGTM=dave, minux, aram
R=minux, dave, bradfitz, aram
CC=golang-codereviews
https://golang.org/cl/119470043

src/cmd/dist/build.c
src/pkg/go/build/build.go
src/pkg/go/build/syslist.go

index a994367351c30f00edc63ac45b58c960d426afcd..70b7fb10566c0c929c5b94884cc2c50a5a002538 100644 (file)
@@ -40,7 +40,7 @@ static void dopack(char*, char*, char**, int);
 static char *findgoversion(void);
 
 // The known architecture letters.
-static char *gochars = "5668";
+static char *gochars = "566899";
 
 // The known architectures.
 static char *okgoarch[] = {
@@ -49,6 +49,8 @@ static char *okgoarch[] = {
        "amd64",
        "amd64p32",
        "386",
+       "power64",
+       "power64le",
 };
 
 // The known operating systems.
index 09730d6351b979d65b09dff02dda187cf8e415a1..e8bfc4a61e377633e38c8d8c0e0b032a86045fd2 100644 (file)
@@ -1230,6 +1230,8 @@ func ArchChar(goarch string) (string, error) {
                return "6", nil
        case "arm":
                return "5", nil
+       case "power64", "power64le":
+               return "9", nil
        }
        return "", errors.New("unsupported GOARCH " + goarch)
 }
index 965f873dfb7afeffb509e66ee0fd139b71492196..2ab53bb9ccbdc3813f5dbc854561f2649ca037d5 100644 (file)
@@ -5,4 +5,4 @@
 package build
 
 const goosList = "android darwin dragonfly freebsd linux nacl netbsd openbsd plan9 solaris windows "
-const goarchList = "386 amd64 amd64p32 arm "
+const goarchList = "386 amd64 amd64p32 arm power64 power64le "