aboutsummaryrefslogtreecommitdiffstats
path: root/yjit.h
diff options
context:
space:
mode:
Diffstat (limited to 'yjit.h')
-rw-r--r--yjit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit.h b/yjit.h
index 7884aef18d..5f2722639f 100644
--- a/yjit.h
+++ b/yjit.h
@@ -15,7 +15,7 @@
# define YJIT_STATS RUBY_DEBUG
#endif
-#if USE_YJIT
+#if USE_YJIT && !defined(MJIT_HEADER) // MJIT and YJIT can't be enabled simultaneously
// We generate x86 or arm64 assembly
#if defined(_WIN32) ? defined(_M_AMD64) : (defined(__x86_64__) || defined(__aarch64__))