summaryrefslogtreecommitdiff
path: root/debian/patches/Disable_JIT_on_sparc64.patch
blob: aacf883843230285d6ceb2cc7be5d52024179720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Disable JIT on sparc64 as it needs explicit porting
 The test suite currently fails on sparc64 when the JIT is enabled
 as the JIT has not been ported to sparc64 yet. Thus, disable JIT
 until it has been explicitly ported to sparc64.
 .

Index: pcre3-8.35/sljit/sljitConfigInternal.h
===================================================================
--- pcre3-8.35.orig/sljit/sljitConfigInternal.h
+++ pcre3-8.35/sljit/sljitConfigInternal.h
@@ -125,7 +125,11 @@
 #elif defined(__mips64)
 #define SLJIT_CONFIG_MIPS_64 1
 #elif defined(__sparc__) || defined(__sparc)
-#define SLJIT_CONFIG_SPARC_32 1
+# if defined(__arch64__)
+#  define SLJIT_CONFIG_UNSUPPORTED 1
+# else
+#  define SLJIT_CONFIG_SPARC_32 1
+# endif
 #elif defined(__tilegx__)
 #define SLJIT_CONFIG_TILEGX 1
 #else