Skip to content

Commit 622166c

Browse files
committed
regex: disambiguate builtin vs system pcre
1 parent c6e48fe commit 622166c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ ELSEIF(REGEX STREQUAL "regcomp")
314314
SET(GIT_REGEX_REGCOMP 1)
315315
ELSEIF(REGEX STREQUAL "builtin")
316316
ADD_FEATURE_INFO(regex ON "using bundled PCRE")
317-
SET(GIT_REGEX_PCRE 1)
317+
SET(GIT_REGEX_BUILTIN 1)
318318

319319
ADD_SUBDIRECTORY("${libgit2_SOURCE_DIR}/deps/pcre" "${libgit2_BINARY_DIR}/deps/pcre")
320320
LIST(APPEND LIBGIT2_INCLUDES "${libgit2_SOURCE_DIR}/deps/pcre")

src/features.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#cmakedefine GIT_REGEX_REGCOMP_L
2020
#cmakedefine GIT_REGEX_REGCOMP
2121
#cmakedefine GIT_REGEX_PCRE
22+
#cmakedefine GIT_REGEX_BUILTIN 1
2223

2324
#cmakedefine GIT_SSH 1
2425
#cmakedefine GIT_SSH_MEMORY_CREDENTIALS 1

src/posix_regex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* compatible implementation.
1616
*/
1717

18-
#ifdef GIT_REGEX_PCRE
18+
#ifdef GIT_REGEX_BUILTIN
1919

2020
# include "pcreposix.h"
2121

0 commit comments

Comments
 (0)