Enable Unicode support for RegEx class
Build PCRE2 thirdparty library with unicode support. RegEx objects in Godot can now be used to recognize unicode strings.
This commit is contained in:
parent
c2b43403b4
commit
9f10f6779c
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ env_regex = env_modules.Clone()
|
||||||
|
|
||||||
if env["builtin_pcre2"]:
|
if env["builtin_pcre2"]:
|
||||||
thirdparty_dir = "#thirdparty/pcre2/src/"
|
thirdparty_dir = "#thirdparty/pcre2/src/"
|
||||||
thirdparty_flags = ["PCRE2_STATIC", "HAVE_CONFIG_H"]
|
thirdparty_flags = ["PCRE2_STATIC", "HAVE_CONFIG_H", "SUPPORT_UNICODE"]
|
||||||
|
|
||||||
if env["builtin_pcre2_with_jit"]:
|
if env["builtin_pcre2_with_jit"]:
|
||||||
thirdparty_flags.append("SUPPORT_JIT")
|
thirdparty_flags.append("SUPPORT_JIT")
|
||||||
|
|
Loading…
Reference in a new issue