Skip to content

Commit

Permalink
Merge pull request #882 from OleMchls/patch-1
Browse files Browse the repository at this point in the history
dynlib support for homebrew 3 on Apple Silicon M1
  • Loading branch information
tduehr committed Jun 2, 2021
2 parents 513aef4 + 5c0a327 commit 82e2092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ffi/library.rb
Expand Up @@ -126,7 +126,7 @@ def ffi_lib(*names)
else
# TODO better library lookup logic
unless libname.start_with?("/") || FFI::Platform.windows?
path = ['/usr/lib/','/usr/local/lib/','/opt/local/lib/'].find do |pth|
path = ['/usr/lib/','/usr/local/lib/','/opt/local/lib/', '/opt/homebrew/lib/'].find do |pth|
File.exist?(pth + libname)
end
if path
Expand Down

0 comments on commit 82e2092

Please sign in to comment.