Skip to content

Commit 13222b2

Browse files
committed
Clean up OS checks.
1 parent d6f0844 commit 13222b2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/ruby-bindgen/generators/ffi/library.erb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ def self.search_names
1414
result << "lib#{name}"
1515
self.library_versions.each do |version|
1616
case RbConfig::CONFIG['host_os']
17-
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
18-
result << "lib#{name}-#{version}"
19-
result << "lib#{name}_#{version}"
2017
when /darwin|mac os/
2118
result << "lib#{name}.#{version}"
19+
when /mingw/
20+
result << "lib#{name}-#{version}"
21+
when /mswin/
22+
result << "#{name}_#{version}"
2223
else
2324
result << "lib#{name}.so.#{version}"
2425
end

0 commit comments

Comments
 (0)