diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-11-15 03:51:06 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2019-11-15 03:55:46 +0900 |
commit | 9c1abe2a6c5e6288ed208000fbf811d145af9355 (patch) | |
tree | f28651846facc692cb7667ca5496d24741fd1a49 /template | |
parent | c9ffe751d126a302d0e7e53e645e44084e339dde (diff) | |
download | ruby-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.tmpl | 2 |
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 |