diff options
author | Kevin Newton <[email protected]> | 2024-01-22 09:39:59 -0500 |
---|---|---|
committer | Kevin Newton <[email protected]> | 2024-01-22 10:18:41 -0500 |
commit | 6bcbb9a02baa8585c2d65e29c0a65d791b077611 (patch) | |
tree | 0fad69ac156e97c382b180874ba23ddcef648817 /ruby.c | |
parent | 2abf153016088605ea6dc77d9f6ba61f619cc273 (diff) |
Make prism respect dump_without_opt
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2427,7 +2427,8 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt) pm_options_filepath_set(&options, RSTRING_PTR(opt->script_name)); } - iseq = rb_iseq_new_main_prism(&input, &options, path); + VALUE optimize = dump & DUMP_BIT(insns_without_opt) ? Qfalse : Qnil; + iseq = rb_iseq_new_main_prism(&input, &options, path, optimize); ruby_opt_init(opt); pm_string_free(&input); |