go-aarch64.patch 427 B

12345678910111213
  1. diff -ru go.orig/src/cmd/dist/unix.c go/src/cmd/dist/unix.c
  2. --- go.orig/src/cmd/dist/unix.c 2015-09-23 04:37:36.000000000 +0000
  3. +++ go/src/cmd/dist/unix.c 2019-05-01 06:29:36.850699517 +0000
  4. @@ -708,6 +708,8 @@
  5. gohostarch = "386";
  6. else if(contains(u.machine, "arm"))
  7. gohostarch = "arm";
  8. + else if(contains(u.machine, "aarch64"))
  9. + gohostarch = "arm";
  10. else
  11. fatal("unknown architecture: %s", u.machine);
  12. }