Go 支持 Apple silicon M1 芯片
Asta Xie·2020-12-06 02:45:23·1324次阅读·发布于 资料分享

Apple推出M1芯片之后,很多Gopher问是否Go已经支持,目前从官方发布的资料来看,明年2月份发布的最新版本go1.16将会支持。详细的资料大家可以看tip.golang.org的文档资料

Darwin and iOS

Go 1.16 adds support of 64-bit ARM architecture on macOS (also known as Apple Silicon) with GOOS=darwin, GOARCH=arm64. Like the darwin/amd64 port, the darwin/arm64 port supports cgo, internal and external linking, c-archive, c-shared, and pie build modes, and the race detector.

The iOS port, which was previously darwin/arm64, has been renamed to ios/arm64. GOOS=ios implies the darwin build tag, just as GOOS=android implies the linux build tag. This change should be transparent to anyone using gomobile to build iOS apps.

Go 1.16 adds an ios/amd64 port, which targets the iOS simulator running on AMD64-based macOS. Previously this was unofficially supported through darwin/amd64 with the ios build tag set.

Go 1.16 is the last release that will run on macOS 10.12 Sierra. Go 1.17 will require macOS 10.13 High Sierra or later.

更多资料

https://tip.golang.org/doc/go1.16#darwin

moss这个帖子中提及了本文 ·2022-01-21
发起回帖
未登录,登录后可以回帖