diff options
Diffstat (limited to 'src/3rdparty/pcre/config.h')
-rw-r--r-- | src/3rdparty/pcre/config.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/3rdparty/pcre/config.h b/src/3rdparty/pcre/config.h index 4fe10f41d8..fede0dcbb0 100644 --- a/src/3rdparty/pcre/config.h +++ b/src/3rdparty/pcre/config.h @@ -13,3 +13,20 @@ #define SUPPORT_UCP #define SUPPORT_UTF16 +/* + man 3 pcrejit for a list of supported platforms; + as PCRE 8.30, stable JIT support is available for: + - ARM v5, v7, and Thumb2 + - x86/x86-64 + - MIPS 32bit +*/ +#if \ + /* ARM */ \ + defined(__arm__) || defined(__TARGET_ARCH_ARM) \ + /* x86 32/64 */ \ + || defined(__i386) || defined(__i386__) || defined(_M_IX86) \ + || defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(_M_X64) \ + /* MIPS32 */ \ + || defined(__mips) || defined(__mips__) || defined(_M_MRX000) && !(defined(_MIPS_ARCH_MIPS64) || defined(__mips64)) +# define SUPPORT_JIT +#endif |