sourcemod/extensions/regex/README.md

972 B

PCRE Build Instructions

As of writing, we're using pcre v8.44

https://ftp.pcre.org/pub/pcre/

Windows

We build with the MinSizeForRelease VS configuration using the target architecture you want. This is how both win libs are built. The following settings were selected in the CMAKE configuration AenKaUByp0

In the PCRE project, go to C/C++ configuration properties and select the Runtime Library to be Multi-threaded (/MT) instead of Multi-threaded DLL (/MD)

Mac

For x86 or x86_64 add -m32 or -m64 to CFLAGS

export CFLAGS='-mmacosx-version-min=10.7'

./configure --enable-unicode-properties --enable-jit --disable-shared --enable-utf && make

Linux

For x86 or x86_64 add -m32 or -m64 to CFLAGS

export CFLAGS='-Wa,-mrelax-relocations=no -fPIC'

./configure --enable-unicode-properties --enable-jit --disable-shared --enable-utf && make