summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-12-10 16:19:13 +0900
committerKoichi Sasada <ko1@atdot.net>2019-12-11 11:24:42 +0900
commit2c5c60754cafe9895b7a7421cd0552eaa2ae8b09 (patch)
tree9f2d074bb370d18483afa7372df3bacf71f07955 /ruby.c
parent943f3e5fd463bf2a4a3a4e92b5134e238b9c931d (diff)
use compiled binary for gem_prelude.rb.
`gem_prelude.rb` is not compiled yet. This patch compile it to compiled binary.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2735
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 69963e3..60c57d6 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1408,10 +1408,12 @@ proc_options(long argc, char **argv, ruby_cmdline_options_t *opt, int envopt)
return argc0 - argc;
}
+void Init_builtin_features(void);
+
static void
ruby_init_prelude(void)
{
- Init_prelude();
+ Init_builtin_features();
rb_const_remove(rb_cObject, rb_intern_const("TMP_RUBY_PREFIX"));
}