summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2025-03-13 16:18:47 -0700
committerTakashi Kokubun <[email protected]>2025-04-18 21:53:00 +0900
commitbb46bb781c529477f1cc8e0de64a602f0607a393 (patch)
treec488977e9c61744e21e12c172aad6c3caae47fae
parent31121a9107f01a7cee798baf9c68548863cf0d5c (diff)
Stub Init_builtin_zjit for --disable-zjit
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13131
-rw-r--r--vm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 86d532c667..37bb26d50b 100644
--- a/vm.c
+++ b/vm.c
@@ -4472,6 +4472,11 @@ void Init_builtin_yjit(void) {}
// Whether YJIT is enabled or not, we load yjit_hook.rb to remove Kernel#with_yjit.
#include "yjit_hook.rbinc"
+// Stub for builtin function when not building ZJIT units
+#if !USE_ZJIT
+void Init_builtin_zjit(void) {}
+#endif
+
/* top self */
static VALUE