lib/lightgbm.rb in lightgbm-0.2.6 vs lib/lightgbm.rb in lightgbm-0.2.7
- old
+ new
@@ -18,10 +18,10 @@
class << self
attr_accessor :ffi_lib
end
lib_name =
- if RbConfig::CONFIG["host_os"] =~ /darwin/i && RbConfig::CONFIG["host_cpu"] =~ /arm/i
+ if RbConfig::CONFIG["host_os"] =~ /darwin/i && RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
"lib_lightgbm.arm64.#{::FFI::Platform::LIBSUFFIX}"
else
"lib_lightgbm.#{::FFI::Platform::LIBSUFFIX}"
end
vendor_lib = File.expand_path("../vendor/#{lib_name}", __dir__)