summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-11-15 03:51:06 +0900
committerKoichi Sasada <ko1@atdot.net>2019-11-15 03:55:46 +0900
commit9c1abe2a6c5e6288ed208000fbf811d145af9355 (patch)
treef28651846facc692cb7667ca5496d24741fd1a49 /template
parentc9ffe751d126a302d0e7e53e645e44084e339dde (diff)
downloadruby-9c1abe2a6c5e6288ed208000fbf811d145af9355.tar.gz
load prelude.rb by builtin features.
The script in prelude.rb was embed in MRI to load it (eval this script at everyboot). This commit change the loading process of prelude.rb. MRI doesn't eval a script, but load from compiled binary with builtin feature. So that Init_prelude() does not load `prelude.rb` now.
Diffstat (limited to 'template')
-rw-r--r--template/prelude.c.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/prelude.c.tmpl b/template/prelude.c.tmpl
index 33f6a68be0..e3cbbaab58 100644
--- a/template/prelude.c.tmpl
+++ b/template/prelude.c.tmpl
@@ -38,7 +38,7 @@ class Prelude
@builtin_count = 0
@preludes = {}
@mains = preludes.map do |filename|
- if prelude = filename.end_with?("prelude.rb")
+ if prelude = filename.end_with?("_prelude.rb")
@prelude_count += 1
else
@builtin_count += 1