[pcre] Fix build failure for loongarch64 cpu (#25617)

* Fix build failure for loongarch64 cpu.

* update port version database.

Co-authored-by: Jamlys Lee <jamlys_lee@163.com>
This commit is contained in:
Jamlys Lee 2022-07-08 05:10:14 +08:00 committed by GitHub
parent 087ef910dd
commit 0e4f9d4d1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 3 deletions

View File

@ -19,6 +19,11 @@ vcpkg_from_sourceforge(
PATCHES ${PATCHES}
)
set(IS_PCRE_SUPPORT_JIT YES)
if(VCPKG_TARGET_ARCHITECTURE MATCHES "loongarch")
set(IS_PCRE_SUPPORT_JIT NO)
endif()
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
@ -27,7 +32,7 @@ vcpkg_cmake_configure(
-DPCRE_BUILD_PCRE32=YES
-DPCRE_BUILD_PCRE16=YES
-DPCRE_BUILD_PCRE8=YES
-DPCRE_SUPPORT_JIT=YES
-DPCRE_SUPPORT_JIT=${IS_PCRE_SUPPORT_JIT}
-DPCRE_SUPPORT_UTF=YES
-DPCRE_SUPPORT_UNICODE_PROPERTIES=YES
# optional dependencies for PCREGREP

View File

@ -1,7 +1,7 @@
{
"name": "pcre",
"version": "8.45",
"port-version": 3,
"port-version": 4,
"description": "Perl Compatible Regular Expressions",
"homepage": "https://www.pcre.org/",
"dependencies": [

View File

@ -5398,7 +5398,7 @@
},
"pcre": {
"baseline": "8.45",
"port-version": 3
"port-version": 4
},
"pcre2": {
"baseline": "10.40",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "50ec11ace2145fac2b0b01dae365a6764f716c6e",
"version": "8.45",
"port-version": 4
},
{
"git-tree": "e8f61fdc5d1286667a8e14eb9521500b882394ad",
"version": "8.45",