Skip to content

Commit b85fc08

Browse files
committed
patch
1 parent 473979a commit b85fc08

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!*.patch
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/ext/pcre/pcre2lib/pcre2_jit_compile.c b/ext/pcre/pcre2lib/pcre2_jit_compile.c
2+
index 175eb68..7fd10d5 100644
3+
--- a/ext/pcre/pcre2lib/pcre2_jit_compile.c
4+
+++ b/ext/pcre/pcre2lib/pcre2_jit_compile.c
5+
@@ -82,7 +82,7 @@ pcre2_memctl *allocator = ((pcre2_memctl*)allocator_data);
6+
allocator->free(ptr, allocator->memory_data);
7+
}
8+
9+
-#include "../deps/sljit/sljit_src/sljitLir.c"
10+
+#include "sljit/sljitLir.c"
11+
12+
#if defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED
13+
#error Unsupported architecture

.github/scripts/download-bundled/pcre2.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ mv pcre2_chartables.c.dist pcre2_chartables.c
3838
git restore config.h # based on config.h.generic but with many changes
3939

4040
# patched files
41+
git apply -v ../../../.github/scripts/download-bundled/pcre2-adjust-sljit-directory.patch

0 commit comments

Comments
 (0)