From ed62b873f226f018213fe67d5eae35a6e031dafa Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 12 Feb 2026 19:35:23 +1100 Subject: [PATCH] Disable JIT on non x86 platforms for zpaq to build. --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 42fcd75..0d366f2 100644 --- a/configure.ac +++ b/configure.ac @@ -44,6 +44,17 @@ AC_SUBST(VMAJ) AC_CANONICAL_BUILD AC_CANONICAL_HOST +# Disable JIT on unsupported architectures +case "${host_cpu}" in + i686|amd64|x86_64) + # JIT supported on x86/x86_64 - do nothing + ;; + *) + CPPFLAGS="${CPPFLAGS} -DNOJIT" + AC_MSG_NOTICE([Disabling JIT - not supported on ${host_cpu} architecture]) + ;; +esac + dnl Checks for programs. AC_PROG_CC AC_PROG_CXX