chiark / gitweb /
Import debian/ directory from 2:8.38-3.1
[pcre3.git] / debian / patches / Disable_JIT_on_sparc64.patch
1 Description: Disable JIT on sparc64 as it needs explicit porting
2  The test suite currently fails on sparc64 when the JIT is enabled
3  as the JIT has not been ported to sparc64 yet. Thus, disable JIT
4  until it has been explicitly ported to sparc64.
5  .
6
7 Index: pcre3/sljit/sljitConfigInternal.h
8 ===================================================================
9 --- pcre3.orig/sljit/sljitConfigInternal.h      2015-12-22 13:30:50.000000000 +0000
10 +++ pcre3/sljit/sljitConfigInternal.h   2015-12-22 13:33:30.000000000 +0000
11 @@ -145,7 +145,11 @@
12  #elif defined(__mips64)
13  #define SLJIT_CONFIG_MIPS_64 1
14  #elif defined(__sparc__) || defined(__sparc)
15 -#define SLJIT_CONFIG_SPARC_32 1
16 +# if defined(__arch64__)
17 +#  define SLJIT_CONFIG_UNSUPPORTED 1
18 +# else
19 +#  define SLJIT_CONFIG_SPARC_32 1
20 +# endif
21  #elif defined(__tilegx__)
22  #define SLJIT_CONFIG_TILEGX 1
23  #else