Skip to content

Commit

Permalink
Normalize gem platform aarch64-darwin to arm64-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed May 11, 2024
1 parent 054ae46 commit acc4eab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/sass/Rakefile
Expand Up @@ -404,7 +404,11 @@ module SassConfig
platform = Gem::Platform.new("#{Platform::CPU}-#{RbConfig::CONFIG['host_os']}")
case Platform::OS
when 'darwin'
Gem::Platform.new([RbConfig::CONFIG['host_cpu'], platform.os])
if platform.cpu == 'aarch64'
Gem::Platform.new(['arm64', platform.os])
else
platform
end
when 'linux'
if platform.version&.start_with?('gnu')
platform
Expand Down

0 comments on commit acc4eab

Please sign in to comment.