-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [regex] Update pcre to pcre2 * [regex] Throw if accessing match after match error * [regex] Prevent null character breaking patterns e.g. `new EReg("abc\x00def", "")` would erroneously match "abc" HaxeFoundation/haxe#10592 * [regex] Add TODO regarding pcre2_substitute * [cmake] Fix static Apache build We can no longer link pcre as we use pcre2 * [cmake] Fix windows pcre static build * [cmake] Download old PCRE for Apache * [cmake] Remove unused flag for pcre windows build * [cmake] Reenable PCRE_STATIC cmake flag for Win * [cmake] Use https for pcre download for Apache Co-authored-by: Simon Krajewski <[email protected]>
- Loading branch information
Showing
9 changed files
with
200 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ set(external_deps | |
Zlib | ||
OpenSSL | ||
MariaDBConnector | ||
PCRE | ||
pcre2 | ||
Sqlite3 | ||
APR | ||
Apache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# https://github.com/refu-lang/rfbase/blob/master/cmake/FindPCRE2.cmake | ||
|
||
# This CMake file tries to find the Perl regular expression libraries | ||
# The following variables are set: | ||
# PCRE2_FOUND - System has the PCRE library | ||
# PCRE2_LIBRARIES - The PCRE library file | ||
# PCRE2_INCLUDE_DIRS - The folder with the PCRE headers | ||
|
||
find_library(PCRE2_LIBRARIES NAMES pcre2 pcre2-8) | ||
find_path(PCRE2_INCLUDE_DIRS pcre2.h) | ||
if(PCRE2_LIBRARIES AND PCRE2_INCLUDE_DIRS) | ||
message(STATUS "PCRE2 libs: ${PCRE2_LIBRARIES}") | ||
message(STATUS "PCRE2 include directory: ${PCRE2_INCLUDE_DIRS}") | ||
set(PCRE2_FOUND TRUE CACHE BOOL "Found PCRE2 libraries" FORCE) | ||
add_custom_target(pcre2) | ||
else() | ||
set(PCRE2_FOUND FALSE CACHE BOOL "Found PCRE2 libraries" FORCE) | ||
message(STATUS "PCRE2 library not found.") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ brew "pkg-config" | |
brew "bdw-gc" | ||
brew "mariadb-connector-c" | ||
brew "mbedtls@2", link: true | ||
brew "pcre" | ||
brew "pcre2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.