diff options
author | Sutou Kouhei <kou@clear-code.com> | 2021-12-12 06:55:33 +0900 |
---|---|---|
committer | Sutou Kouhei <kou@clear-code.com> | 2021-12-12 06:55:33 +0900 |
commit | cd9daf3fd02345c303390f533b586376a45f2554 (patch) | |
tree | 988909324212c9a2d8f005d6e2ba817c14326013 | |
parent | 270362a48331e69fefcd57e58d8dd68f56371a6b (diff) | |
download | rake-compiler-cd9daf3fd02345c303390f533b586376a45f2554.tar.gz |
Fix extension path
-rw-r--r-- | lib/rake/extensiontask.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |