[pcre2] Fix build with Emscripten/WASM (#7948)

PCRE does not support Just-in-time compilation when targeting
WebAssembly.
This commit is contained in:
Simon Hausmann 2019-09-03 22:37:13 +02:00 committed by dan-shaw
parent daab07dd9e
commit a19151fff1
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
Source: pcre2
Version: 10.30-4
Version: 10.30-5
Homepage: https://pcre.org/
Description: PCRE2 is a re-working of the original Perl Compatible Regular Expressions library

View File

@ -12,6 +12,12 @@ vcpkg_extract_source_archive_ex(
PATCHES fix-space.patch
fix-arm64-config.patch)
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
set(JIT OFF)
else()
set(JIT ON)
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@ -19,7 +25,7 @@ vcpkg_configure_cmake(
-DPCRE2_BUILD_PCRE2_8=ON
-DPCRE2_BUILD_PCRE2_16=ON
-DPCRE2_BUILD_PCRE2_32=ON
-DPCRE2_SUPPORT_JIT=ON
-DPCRE2_SUPPORT_JIT=${JIT}
-DPCRE2_SUPPORT_UNICODE=ON
-DPCRE2_BUILD_TESTS=OFF
-DPCRE2_BUILD_PCRE2GREP=OFF)