File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Rake::TestTask.new do |t|
8
8
t . warning = false # for daru
9
9
end
10
10
11
- shared_libraries = %w( lib_lightgbm.dll lib_lightgbm.dylib lib_lightgbm.arm64.dylib lib_lightgbm.so )
11
+ shared_libraries = %w( lib_lightgbm.dll lib_lightgbm.dylib lib_lightgbm.arm64.dylib lib_lightgbm.so lib_lightgbm.arm64.so )
12
12
13
13
# ensure vendor files exist
14
14
task :ensure_vendor do
@@ -26,7 +26,7 @@ def download_file(file, sha256)
26
26
version = "4.6.0"
27
27
28
28
url =
29
- if file == "lib_lightgbm.arm64.dylib"
29
+ if [ "lib_lightgbm.arm64.so" , "lib_lightgbm.arm64.dylib" ] . include? ( file )
30
30
"https://github.com/ankane/ml-builds/releases/download/lightgbm-#{ version } /#{ file } "
31
31
else
32
32
"https://github.com/microsoft/LightGBM/releases/download/v#{ version } /#{ file } "
46
46
namespace :vendor do
47
47
task :linux do
48
48
download_file ( "lib_lightgbm.so" , "237f15e1362a5abab4be0fae14aebba7bb278763f3412a82c50ab9d1fc0dc8bd" )
49
+ download_file ( "lib_lightgbm.arm64.so" , "748e78afbb275d03b0de114d9d629e3b31e397f052c3fe9fe7d4e2fddc7e536e" )
49
50
end
50
51
51
52
task :mac do
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class << self
24
24
attr_accessor :ffi_lib
25
25
end
26
26
lib_name =
27
- if RbConfig :: CONFIG [ "host_os" ] =~ /darwin/i && RbConfig ::CONFIG [ "host_cpu" ] =~ /arm|aarch64/i
27
+ if !:: FFI :: Platform . windows? && RbConfig ::CONFIG [ "host_cpu" ] =~ /arm|aarch64/i
28
28
"lib_lightgbm.arm64.#{ ::FFI ::Platform ::LIBSUFFIX } "
29
29
else
30
30
"lib_lightgbm.#{ ::FFI ::Platform ::LIBSUFFIX } "
You can’t perform that action at this time.
0 commit comments