Skip to content

Commit 0ab7833

Browse files
committed
ruby.c: Fallback FEATURE_BIT(jit) to FEATURE_BIT(zjit)
if it's the only JIT enabled in the build
1 parent 4f03095 commit 0ab7833

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ruby.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ enum feature_flag_bits {
119119
EACH_FEATURES(DEFINE_FEATURE, COMMA),
120120
DEFINE_FEATURE(frozen_string_literal_set),
121121
feature_debug_flag_first,
122+
#if !USE_YJIT && USE_ZJIT
123+
DEFINE_FEATURE(jit) = feature_zjit,
124+
#else
122125
DEFINE_FEATURE(jit) = feature_yjit,
126+
#endif
123127
feature_jit_mask = FEATURE_BIT(yjit) | FEATURE_BIT(zjit),
124128

125129
feature_debug_flag_begin = feature_debug_flag_first - 1,

0 commit comments

Comments
 (0)