summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rw-r--r--tool/compile_prelude.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/compile_prelude.rb b/tool/compile_prelude.rb
index 6a8d9e1695..4a2c2ea831 100644
--- a/tool/compile_prelude.rb
+++ b/tool/compile_prelude.rb
@@ -4,6 +4,8 @@
# Since $(BASERUBY) may be older than Ruby 1.9,
# Ruby 1.9 feature should not be used.
+$:.unshift(File.expand_path("../..", __FILE__))
+
preludes = ARGV.dup
outfile = preludes.pop