summaryrefslogtreecommitdiff
path: root/tool/ruby_vm
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-13 12:24:59 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-13 12:24:59 +0900
commitc50623f0934ec0b94550fa59a2b0ffcb1b0f858f (patch)
treeba01701363c3c4f06d4fd5c2ed6a132349e6d678 /tool/ruby_vm
parent751ffb276f658518c6fe06461a9d3d1c136c7d5d (diff)
downloadruby-c50623f0934ec0b94550fa59a2b0ffcb1b0f858f.tar.gz
Revert "FreeBSD make uses the target under srcdir [ci skip]"
This reverts commit 751ffb276f658518c6fe06461a9d3d1c136c7d5d, which caused build failures on other platforms.
Diffstat (limited to 'tool/ruby_vm')
-rw-r--r--[-rwxr-xr-x]tool/ruby_vm/helpers/dumper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/ruby_vm/helpers/dumper.rb b/tool/ruby_vm/helpers/dumper.rb
index 150a81f04b..c083dffa7a 100755..100644
--- a/tool/ruby_vm/helpers/dumper.rb
+++ b/tool/ruby_vm/helpers/dumper.rb
@@ -28,7 +28,7 @@ class RubyVM::Dumper
path = Pathname.new(__FILE__)
path = (path.relative_path_from(Pathname.pwd) rescue path).dirname
path += '../views'
- path += Pathname.pwd.join(File.basename(spec)).expand_path.to_s.sub("#{@base}/", '')
+ path += Pathname.pwd.join(spec).expand_path.to_s.sub("#{@base}/", '')
src = path.expand_path.read mode: 'rt:utf-8:utf-8'
rescue Errno::ENOENT
raise "don't know how to generate #{path}"