Skip to content

Commit eeb2705

Browse files
Fix detecting of Apple Silicon architecture
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".
1 parent 61f5f50 commit eeb2705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exe/dartsass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ platform_string = "#{system_config["host_cpu"]}-#{system_config["host_os"]}"
1010
exe_path =
1111
case platform_string
1212
when /aarch64-linux/ then File.join(__dir__, "aarch64-linux/sass")
13-
when /arm64-darwin/ then File.join(__dir__, "arm64-darwin/sass")
13+
when /arm(64)?-darwin/ then File.join(__dir__, "arm64-darwin/sass")
1414
when /darwin/ then File.join(__dir__, "darwin/sass")
1515
when /linux/ then File.join(__dir__, "linux/sass")
1616
when /mswin|mingw|cygwin/ then File.join(__dir__, "mingw32/sass.bat")

0 commit comments

Comments
 (0)