浏览代码

Add workaround for emscripten >= 3.1.47 LTO build

(cherry picked from commit 656bc22e283852a55ad1317048649f0991bc7dcd)
Adam Scott 1 年之前
父节点
当前提交
ebd9104cdc
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      platform/javascript/detect.py

+ 3 - 0
platform/javascript/detect.py

@@ -198,6 +198,9 @@ def configure(env):
         # Workaround https://github.com/emscripten-core/emscripten/issues/19781.
         if cc_semver >= (3, 1, 42) and cc_semver < (3, 1, 46):
             env.Append(LINKFLAGS=["-Wl,-u,scalbnf"])
+        # Workaround https://github.com/emscripten-core/emscripten/issues/16836.
+        if cc_semver >= (3, 1, 47):
+            env.Append(LINKFLAGS=["-Wl,-u,_emscripten_run_callback_on_thread"])
 
     if env["gdnative_enabled"]:
         if cc_semver < (2, 0, 10):