summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorZher Huei Lee <lee.zh.92@gmail.com>2017-09-01 18:33:04 +0800
committerZher Huei Lee <lee.zh.92@gmail.com>2017-09-01 18:33:04 +0800
commit566c0f675a5d998171cdd8fa1e920af40a24d5dd (patch)
tree1872c8dd72a41b35969bd6483ec81e4134590a48 /modules
parenta717083235b3369aef9a3846b5071fac023a60b2 (diff)
Disabled PCRE-JIT in HTML5. Fixes #10834
Diffstat (limited to 'modules')
-rw-r--r--modules/regex/SCsub7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/regex/SCsub b/modules/regex/SCsub
index 0fbdf97620..2dfc2739e9 100644
--- a/modules/regex/SCsub
+++ b/modules/regex/SCsub
@@ -8,8 +8,11 @@ env_regex.Append(CPPFLAGS=["-DPCRE2_CODE_UNIT_WIDTH=0"])
env_regex.add_source_files(env.modules_sources, "*.cpp")
if (env['builtin_pcre2'] != 'no'):
- thirdparty_dir = "#thirdparty/pcre2/src/"
- thirdparty_flags = ["-DPCRE2_STATIC", "-DHAVE_CONFIG_H", "-DSUPPORT_JIT"]
+ jit_blacklist = ['javascript']
+ thirdparty_dir = '#thirdparty/pcre2/src/'
+ thirdparty_flags = ['-DPCRE2_STATIC', '-DHAVE_CONFIG_H']
+ if 'platform' in env and env['platform'] not in jit_blacklist:
+ thirdparty_flags.append('-DSUPPORT_JIT')
thirdparty_sources = [
"pcre2_auto_possess.c",
"pcre2_chartables.c",