We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d94c251 commit 474eb9fCopy full SHA for 474eb9f
1 file changed
lib/numo/linalg/autoloader.rb
@@ -64,7 +64,12 @@ def load_library
64
end
65
66
def detect_library_extension
67
- case RbConfig::CONFIG['host_os']
+ # Ruby >= 2.5 provides SOEXT in rbconfig
68
+ so_ext = RbConfig::CONFIG["SOEXT"]
69
+ return so_ext if so_ext
70
+
71
+ # For Ruby < 2.5, we use RUBY_PLATFORM
72
+ case RUBY_PLATFORM
73
when /mswin|msys|mingw|cygwin/
74
'dll'
75
when /darwin|mac os/
0 commit comments