diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-09 19:43:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-09 19:43:14 +0900 |
commit | e3c852441177caa4b251fa33c83a65e4263a4146 (patch) | |
tree | e7aeabf6c961b8934252f44a4a31c8583feaee20 /tool | |
parent | dfaac2b37253ff25ec873c2fbd93abfa7f789248 (diff) | |
download | ruby-e3c852441177caa4b251fa33c83a65e4263a4146.tar.gz |
Full-path of builtin scripts no longer needed
Diffstat (limited to 'tool')
-rw-r--r-- | tool/mk_builtin_loader.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tool/mk_builtin_loader.rb b/tool/mk_builtin_loader.rb index 87b5e2ab76..4f140a6f6b 100644 --- a/tool/mk_builtin_loader.rb +++ b/tool/mk_builtin_loader.rb @@ -67,10 +67,9 @@ def mk_builtin_header file f.puts "COMPILER_WARNING_POP" - path = File.expand_path(file) f.puts f.puts " // load" - f.puts " rb_load_with_builtin_functions(\"#{base}\", \"#{file}\", #{table});" + f.puts " rb_load_with_builtin_functions(#{base.dump}, #{table});" f.puts "}" } @@ -78,6 +77,5 @@ end ARGV.each{|file| # feature.rb => load_feature.inc - path = File.expand_path(file) - mk_builtin_header path + mk_builtin_header file } |