1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 02:17:34 +00:00

LibRegex: Don't build LibRegex/C/Regex.cpp on Lagom

This file implements the POSIX APIs from <regex.h>, and is not suitable
for inclusion in a Lagom build. If we do include it, it will override
the host's regex functions and wreak havoc if it's resolved before the
host's implementation.
This commit is contained in:
Andrew Kaster 2022-10-09 15:35:58 -06:00 committed by Linus Groh
parent a81475d9fb
commit 896d4e8dc1
2 changed files with 5 additions and 8 deletions

View file

@ -482,10 +482,9 @@ if (BUILD_LAGOM)
)
# Regex
file(GLOB LIBREGEX_LIBC_SOURCES "../../Userland/Libraries/LibRegex/C/Regex.cpp")
file(GLOB LIBREGEX_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibRegex/*.cpp")
lagom_lib(Regex regex
SOURCES ${LIBREGEX_SOURCES} ${LIBREGEX_LIBC_SOURCES}
SOURCES ${LIBREGEX_SOURCES}
LIBS LibUnicode
)