We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be96ee5 commit cfdbabcCopy full SHA for cfdbabc
lib/truffle/truffle/openssl-prefix.rb
@@ -20,10 +20,9 @@ module Truffle
20
end
21
}
22
23
-macOS = RUBY_PLATFORM.include?('darwin')
24
-
25
-if macOS && !ENV['OPENSSL_PREFIX']
26
- if prefix = search_homebrew.call('/usr/local')
+if Truffle::Platform.darwin? && !ENV['OPENSSL_PREFIX']
+ default_homebrew_prefix = Truffle::System.host_cpu == 'aarch64' ? '/opt/homebrew' : '/usr/local'
+ if prefix = search_homebrew.call(default_homebrew_prefix)
27
# found
28
else
29
homebrew = `brew --prefix 2>/dev/null`.strip
0 commit comments