summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2025-02-06 15:42:25 -0500
committerTakashi Kokubun <[email protected]>2025-04-18 21:52:56 +0900
commiteb677ec24c421a0817d642c94857e8923ab94f1a (patch)
treece7e32a797374ccdbbe9fcf265962cf425ee6b07 /ruby.c
parentc5e17f50b7bc81d39f2f063a238fc8cb55ef726c (diff)
Fix the handling of flags
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13131
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby.c b/ruby.c
index 14b96a3315..daaf9c14ae 100644
--- a/ruby.c
+++ b/ruby.c
@@ -120,7 +120,7 @@ enum feature_flag_bits {
DEFINE_FEATURE(frozen_string_literal_set),
feature_debug_flag_first,
DEFINE_FEATURE(jit) = feature_yjit,
- feature_jit_mask = FEATURE_BIT(yjit),
+ feature_jit_mask = FEATURE_BIT(yjit) | FEATURE_BIT(zjit),
feature_debug_flag_begin = feature_debug_flag_first - 1,
EACH_DEBUG_FEATURES(DEFINE_DEBUG_FEATURE, COMMA),
@@ -1454,7 +1454,7 @@ proc_long_options(ruby_cmdline_options_t *opt, const char *s, long argc, char **
#endif
}
else if (is_option_with_optarg("zjit", '-', true, false, false)) {
- FEATURE_SET(opt->features, FEATURE_BIT(yjit));
+ FEATURE_SET(opt->features, FEATURE_BIT(zjit));
extern bool rb_zjit_parse_option();
rb_zjit_parse_option();
}