From cd9daf3fd02345c303390f533b586376a45f2554 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Sun, 12 Dec 2021 06:55:33 +0900 Subject: Fix extension path --- lib/rake/extensiontask.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/rake/extensiontask.rb b/lib/rake/extensiontask.rb index e0fd55c..ee9711a 100644 --- a/lib/rake/extensiontask.rb +++ b/lib/rake/extensiontask.rb @@ -234,7 +234,7 @@ Java extension should be preferred. # platform matches the indicated one. if platf == RUBY_PLATFORM then # ensure file is always copied - file "#{lib_path}/#{binary_path}" => ["copy:#{name}:#{platf}:#{ruby_ver}"] + file "#{lib_path}/#{File.basename(binary_path)}" => ["copy:#{name}:#{platf}:#{ruby_ver}"] task "compile:#{@name}" => ["compile:#{@name}:#{platf}"] task "compile" => ["compile:#{platf}"] @@ -465,7 +465,7 @@ Java extension should be preferred. end # FIXME: targeting multiple platforms copies the file twice - file "#{lib_path}/#{binary(for_platform)}" => ["copy:#{@name}:#{for_platform}:#{ruby_ver}"] + file "#{lib_path}/#{File.basename(binary(for_platform))}" => ["copy:#{@name}:#{for_platform}:#{ruby_ver}"] # if everything for native task is in place if @gem_spec && @gem_spec.platform == 'ruby' then -- cgit v1.2.1