diff options
author | maxim-yurchuk <[email protected]> | 2024-10-09 12:29:46 +0300 |
---|---|---|
committer | maxim-yurchuk <[email protected]> | 2024-10-09 13:14:22 +0300 |
commit | 9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch) | |
tree | a8fb3181d5947c0d78cf402aa56e686130179049 /contrib/libs/pcre/patches/turn-off-jit-on-request.patch | |
parent | a44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff) |
publishFullContrib: true for ydb
<HIDDEN_URL>
commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/libs/pcre/patches/turn-off-jit-on-request.patch')
-rw-r--r-- | contrib/libs/pcre/patches/turn-off-jit-on-request.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/libs/pcre/patches/turn-off-jit-on-request.patch b/contrib/libs/pcre/patches/turn-off-jit-on-request.patch new file mode 100644 index 00000000000..0d09fa1df27 --- /dev/null +++ b/contrib/libs/pcre/patches/turn-off-jit-on-request.patch @@ -0,0 +1,32 @@ +From: Дмитрий Потапов <[email protected]> +Date: Sun, 14 Feb 2021 19:43:48 +0300 +Subject: [PATCH] Conditional PCRE JIT compilation. + +PCRE JIT adds ≈104KB to binary size which can be critical for embedded software, so we need turn off switch which can be overriden in ya.make. + +REVIEW: 1640869 + +--- a/config.h ++++ b/config.h +@@ -293,8 +293,10 @@ + backward compatibility; new code need not use it. */ + #define STDC_HEADERS 1 + ++#ifdef ARCADIA_PCRE_ENABLE_JIT + /* Define to any value to enable support for Just-In-Time compiling. */ + #define SUPPORT_JIT /**/ ++#endif + + /* Define to any value to allow pcregrep to be linked with libbz2, so that it + is able to handle .bz2 files. */ +@@ -319,8 +321,10 @@ + /* Define to any value to enable the 8 bit PCRE library. */ + #define SUPPORT_PCRE8 /**/ + ++#ifdef ARCADIA_PCRE_ENABLE_JIT + /* Define to any value to enable JIT support in pcregrep. */ + #define SUPPORT_PCREGREP_JIT /**/ ++#endif + + /* Define to any value to enable support for Unicode properties. */ + #define SUPPORT_UCP /**/ |