Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix detecting of Apple Silicon architecture #32

Merged
merged 1 commit into from
Dec 16, 2022

Conversation

jacob-carlborg-apoex
Copy link
Contributor

On some Macs, Ruby reports the host CPU as "arm". Might be related to which version of the kernel is installed, but uname still reports "arm64".

This is an extract of RbConfig::CONFIG:

{
  "target_os"=>"darwin21",
  "target_vendor"=>"apple",
  "target_cpu"=>"arm64",
  "target"=>"arm64-apple-darwin21",
  "host_os"=>"darwin21.3.0",
  "host_vendor"=>"apple",
  "host_cpu"=>"arm",
  "host"=>"arm-apple-darwin21.3.0",
  "RUBY_VERSION_NAME"=>"ruby-2.7.0",
  "RUBYW_BASE_NAME"=>"rubyw",
  "RUBY_BASE_NAME"=>"ruby",
  "build_os"=>"darwin21.3.0",
  "build_vendor"=>"apple",
  "build_cpu"=>"arm",
  "build"=>"arm-apple-darwin21.3.0",
}

On some Macs, Ruby reports the host CPU as "arm". Might be related to
which version of the kernel is installed, but uname still reports
"arm64".
@dhh dhh merged commit 0a8f866 into rails:main Dec 16, 2022
@jacob-carlborg-apoex jacob-carlborg-apoex deleted the fix-detecting-apple-silicon branch December 16, 2022 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants