mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 17:20:37 +08:00
Enable pcre2:arm64-windows
Update sljitConfigInternal.h for ARM64
This commit is contained in:
parent
8c3e093d05
commit
6166c1509a
29
ports/pcre2/fix-arm64-config.patch
Normal file
29
ports/pcre2/fix-arm64-config.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
diff --git a/src/sljit/sljitConfigInternal.h b/src/sljit/sljitConfigInternal.h
|
||||||
|
index cc0810f..964afe8 100644
|
||||||
|
--- a/src/sljit/sljitConfigInternal.h
|
||||||
|
+++ b/src/sljit/sljitConfigInternal.h
|
||||||
|
@@ -151,6 +151,8 @@
|
||||||
|
#define SLJIT_CONFIG_X86_64 1
|
||||||
|
#elif defined(_ARM_)
|
||||||
|
#define SLJIT_CONFIG_ARM_V5 1
|
||||||
|
+#elif defined(_M_ARM64)
|
||||||
|
+#define SLJIT_CONFIG_ARM_64 1
|
||||||
|
#else
|
||||||
|
#define SLJIT_CONFIG_X86_32 1
|
||||||
|
#endif
|
||||||
|
@@ -324,9 +326,15 @@
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
+#if defined(__linux__)
|
||||||
|
/* Calls __ARM_NR_cacheflush on ARM-Linux. */
|
||||||
|
#define SLJIT_CACHE_FLUSH(from, to) \
|
||||||
|
__clear_cache((char*)(from), (char*)(to))
|
||||||
|
+#elif(_WIN32)
|
||||||
|
+#pragma comment(lib, "kernel32.lib")
|
||||||
|
+#define SLJIT_CACHE_FLUSH(from, to) \
|
||||||
|
+ FlushInstructionCache(GetCurrentProcess(), (void*)(from), (uintptr_t)(to - from));
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -10,7 +10,7 @@ vcpkg_extract_source_archive_ex(
|
|||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
ARCHIVE ${ARCHIVE}
|
ARCHIVE ${ARCHIVE}
|
||||||
PATCHES fix-space.patch
|
PATCHES fix-space.patch
|
||||||
)
|
fix-arm64-config.patch)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
|
Loading…
Reference in New Issue
Block a user