소스 검색

Merge pull request #10853 from leezh/pcre_html5_fix

Disabled PCRE-JIT in HTML5. Fixes #10834

[ci skip]
Rémi Verschelde 8 년 전
부모
커밋
7c76e0c8c3
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      modules/regex/SCsub

+ 5 - 2
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",