Apple M1 chip based computers

502 views
Skip to first unread message

Tharaneedharan Vilwanathan

unread,
Nov 10, 2020, 4:33:45 PM11/10/20
to golang-nuts
Hi All,

Sorry if this has been discussed and I missed it. I have a quick question.

Does Go have native support for Apple M1 chip?

Regards
dharani

silas poulson

unread,
Nov 10, 2020, 5:02:44 PM11/10/20
to Tharaneedharan Vilwanathan, golang-nuts
>Does Go have native support for Apple M1 chip?

Earlier discussion about Apple’s other architecture changes:
<https://groups.google.com/g/golang-nuts/c/GM-P_Ydqal0/m/UhdqIvqWBAAJ>
Imagine some work will need to be done - although given release news about
including transforming app uncertain how much.

Probably compiling from sources should work, but we’ll have to see as
machines become available to the community

Silas
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAN-HoCmujnE9nLF_UapGbX0LjkfpeFNtPwyt10drFHJEH41C4A%40mail.gmail.com.

Tharaneedharan Vilwanathan

unread,
Nov 10, 2020, 5:13:15 PM11/10/20
to silas poulson, golang-nuts
Thank you. Let me check the thread.

Is it correct to say, for sure at least cross-compiling from, say x86-64 ubuntu, would produce native M1 chip executable for Go programs?

Regards
dharani

Ian Lance Taylor

unread,
Nov 10, 2020, 5:53:36 PM11/10/20
to Tharaneedharan Vilwanathan, silas poulson, golang-nuts
On Tue, Nov 10, 2020 at 2:13 PM Tharaneedharan Vilwanathan
<vdha...@gmail.com> wrote:
>
> Thank you. Let me check the thread.
>
> Is it correct to say, for sure at least cross-compiling from, say x86-64 ubuntu, would produce native M1 chip executable for Go programs?

Assuming the M1 is Apple's version of the arm64, then Go will support
the platform as of the upcoming 1.16 release.

Cross-compiling from a GNU/Linux system should work fine as usual for
a pure Go program that does not use cgo.

Ian

silas poulson

unread,
Nov 10, 2020, 5:55:10 PM11/10/20
to golang-nuts
Further investigation https://github.com/golang/go/issues/38485 appears so?
Don't know properly - fairly new to Go
Reply all
Reply to author
Forward
0 new messages