summaryrefslogtreecommitdiff
path: root/yjit.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-13 20:35:35 -0800
committerGitHub <noreply@github.com>2022-11-13 20:35:35 -0800
commit3dd4e381fe3c7faf886145ad7ab2152c6b199d69 (patch)
tree6e3fe348a83f90b401a1258a8bf0b50fc122b0b9 /yjit.h
parentea278ddd921bcafc3be2a79a7f0f68685e56da3b (diff)
Reduce the number of branches in jit_exec (#6722)
* Reduce the number of branches in jit_exec * Address build failure in some configurations * Refactor yjit.h
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
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__))