summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 64f0a48435..cc3d4305c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3747,10 +3747,6 @@ AC_ARG_ENABLE(jit-support,
[MJIT_SUPPORT=yes]
)])
-AS_IF([test x"$MJIT_SUPPORT" = "xyes"],
- [AC_DEFINE(USE_MJIT, 1)],
- [AC_DEFINE(USE_MJIT, 0)])
-
AC_SUBST(MJIT_SUPPORT)
AC_CHECK_PROG(RUSTC, [rustc], [rustc], [no]) dnl no ac_tool_prefix
@@ -3853,7 +3849,11 @@ AS_CASE(["${YJIT_SUPPORT}"],
AC_DEFINE_UNQUOTED(YJIT_SUPPORT, [$YJIT_SUPPORT])
])
AC_DEFINE(USE_YJIT, 1)
-], [AC_DEFINE(USE_YJIT, 0)])
+ AC_DEFINE(USE_MJIT, 1)
+], [
+ AC_DEFINE(USE_YJIT, 0)
+ AC_DEFINE(USE_MJIT, 0)
+])
# If YJIT links capstone, libcapstone stops working on the C side.
# capstone should be linked for MJIT only when YJIT doesn't.