Skip to content

Commit

Permalink
Make LibUI find shared libraries in x86-mingw32
Browse files Browse the repository at this point in the history
Fix #76
  • Loading branch information
kojix2 committed Nov 12, 2023
1 parent b5b6bfb commit 0f56d6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/libui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ class << self
attr_accessor :ffi_lib
end

host_cpu = RbConfig::CONFIG['host_cpu'].gsub(/i[36]86/, 'x86')
lib_name = [
"libui.#{RbConfig::CONFIG['host_cpu']}.#{RbConfig::CONFIG['SOEXT']}",
"libui.#{host_cpu}.#{RbConfig::CONFIG['SOEXT']}",
"libui.#{RbConfig::CONFIG['SOEXT']}"
]

Expand Down

0 comments on commit 0f56d6d

Please sign in to comment.