mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
set up mjit.on at initialization
* ruby.c (cmdline_options_init): set up mjit.on flag by MJIT_FORCE_ENABLE in the initialization function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e2b7363e4c
commit
b53114dd99
1 changed files with 3 additions and 4 deletions
7
ruby.c
7
ruby.c
|
@ -179,6 +179,9 @@ cmdline_options_init(ruby_cmdline_options_t *opt)
|
||||||
opt->ext.enc.index = -1;
|
opt->ext.enc.index = -1;
|
||||||
opt->intern.enc.index = -1;
|
opt->intern.enc.index = -1;
|
||||||
opt->features = DEFAULT_FEATURES;
|
opt->features = DEFAULT_FEATURES;
|
||||||
|
#ifdef MJIT_FORCE_ENABLE /* to use with: ./configure cppflags="-DMJIT_FORCE_ENABLE" */
|
||||||
|
opt->mjit.on = MJIT_FORCE_ENABLE;
|
||||||
|
#endif
|
||||||
return opt;
|
return opt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1534,10 +1537,6 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
|
||||||
const struct rb_block *base_block;
|
const struct rb_block *base_block;
|
||||||
unsigned int dump = opt->dump & dump_exit_bits;
|
unsigned int dump = opt->dump & dump_exit_bits;
|
||||||
|
|
||||||
#ifdef MJIT_FORCE_ENABLE /* to use with: ./configure cppflags="-DMJIT_FORCE_ENABLE" */
|
|
||||||
opt->mjit.on = 1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (opt->dump & (DUMP_BIT(usage)|DUMP_BIT(help))) {
|
if (opt->dump & (DUMP_BIT(usage)|DUMP_BIT(help))) {
|
||||||
const char *const progname =
|
const char *const progname =
|
||||||
(argc > 0 && argv && argv[0] ? argv[0] :
|
(argc > 0 && argv && argv[0] ? argv[0] :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue