mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 19:03:02 +08:00
Enable pcre:arm64-windows
Update sljitConfigInternal.h for ARM64, resolve error C2375: 'FlushInstructionCache': redefinition; different linkage
This commit is contained in:
parent
8c3e093d05
commit
9b45a7b09c
21
ports/pcre/fix-arm64-config-define.patch
Normal file
21
ports/pcre/fix-arm64-config-define.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff --git a/sljit/sljitConfigInternal.h b/sljit/sljitConfigInternal.h
|
||||
index 2bda29e..56ba7a6 100644
|
||||
--- a/sljit/sljitConfigInternal.h
|
||||
+++ b/sljit/sljitConfigInternal.h
|
||||
@@ -151,6 +151,8 @@
|
||||
#define SLJIT_CONFIG_X86_64 1
|
||||
#elif defined(_M_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
|
||||
@@ -330,7 +332,6 @@
|
||||
__clear_cache((char*)(from), (char*)(to))
|
||||
#elif(_WIN32)
|
||||
#pragma comment(lib, "kernel32.lib")
|
||||
-uint32_t FlushInstructionCache(void *hProcess, void *lpBaseAddress, uintptr_t dwSize);
|
||||
#define SLJIT_CACHE_FLUSH(from, to) \
|
||||
FlushInstructionCache(GetCurrentProcess(), (void*)(from), (uintptr_t)(to - from));
|
||||
#endif
|
@ -19,7 +19,8 @@ vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/fix-option-2.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/fix-arm-config-define.patch)
|
||||
${CMAKE_CURRENT_LIST_DIR}/fix-arm-config-define.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/fix-arm64-config-define.patch)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
|
Loading…
Reference in New Issue
Block a user