aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-11-09 07:09:01 +0900
committerKoichi Sasada <ko1@atdot.net>2019-11-09 07:09:01 +0900
commitb5d884922053962c955df1ce54d9dabc98888272 (patch)
tree219cedfe41e47690e474922d166c64ab8e2b2550 /tool
parentdfac2e9eb3d697e56d91151584f1d3cf9d2c79c9 (diff)
downloadruby-b5d884922053962c955df1ce54d9dabc98888272.tar.gz
Revert "don't embed full-path."
This reverts commit dfac2e9eb3d697e56d91151584f1d3cf9d2c79c9. It does not work if cwd is different from builddir...
Diffstat (limited to 'tool')
-rw-r--r--tool/mk_builtin_loader.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/mk_builtin_loader.rb b/tool/mk_builtin_loader.rb
index f00e2fe26f..87b5e2ab76 100644
--- a/tool/mk_builtin_loader.rb
+++ b/tool/mk_builtin_loader.rb
@@ -67,9 +67,10 @@ 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}\", #{table});"
+ f.puts " rb_load_with_builtin_functions(\"#{base}\", \"#{file}\", #{table});"
f.puts "}"
}