Skip to content

Commit 9838c44

Browse files
committed
Make builtin init ifdefs consistent
1 parent 990a538 commit 9838c44

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

inits.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,8 @@ rb_call_builtin_inits(void)
102102
BUILTIN(yjit);
103103
BUILTIN(nilclass);
104104
BUILTIN(marshal);
105-
#if USE_RJIT
106105
BUILTIN(rjit_c);
107106
BUILTIN(rjit);
108-
#endif
109107
Init_builtin_prelude();
110108
}
111109
#undef CALL

vm.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4420,11 +4420,17 @@ Init_vm_objects(void)
44204420
vm->frozen_strings = st_init_table_with_size(&rb_fstring_hash_type, 10000);
44214421
}
44224422

4423-
/* Stub for builtin function when not building YJIT units*/
4423+
// Stub for builtin function when not building YJIT units
44244424
#if !USE_YJIT
44254425
void Init_builtin_yjit(void) {}
44264426
#endif
44274427

4428+
// Stub for builtin function when not building RJIT units
4429+
#if !USE_RJIT
4430+
void Init_builtin_rjit(void) {}
4431+
void Init_builtin_rjit_c(void) {}
4432+
#endif
4433+
44284434
/* top self */
44294435

44304436
static VALUE

0 commit comments

Comments
 (0)