1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

FreeBSD make uses the target under srcdir [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2022-10-13 12:10:10 +09:00
parent dd5118f852
commit 751ffb276f
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

2
tool/ruby_vm/helpers/dumper.rb Normal file → Executable file
View file

@ -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(spec).expand_path.to_s.sub("#{@base}/", '')
path += Pathname.pwd.join(File.basename(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}"