mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-23 19:29:49 +00:00
[pcre2] Fix build with Emscripten/WASM (#7948)
PCRE does not support Just-in-time compilation when targeting WebAssembly.
This commit is contained in:
parent
daab07dd9e
commit
a19151fff1
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user