关于 Haskell 工具链在 Apple SIlicon Mac 上的支持情况

GHCup(一个类似 rustup 的工具)显示 Stack 并不支持 Apple SIlicon Mac。

但 Stack 官网却说他们是支持的。

For Mac computers with Apple silicon, the easiest way to install Stack is to command either:

curl -sSL https://get.haskellstack.org/ | sh

or:

wget -qO- https://get.haskellstack.org/ | sh

第一直觉,看 git blame,ghcup 不支持 apple silicon 的说法写在两年前,有过时可能

第二直觉,看 stack 的安装脚本,有 aarch64 原生 binary ,排除了用 Rosetta 湊数的可能

install_aarch64_osx_binary() {
  install_from_bindist "osx-aarch64.tar.gz"
}

install_x86_64_osx_binary() {
  install_from_bindist "osx-x86_64.tar.gz"
}

那结论很明显了,不用我了说吧

2 个赞