浏览代码

[HTML5] Fix GDNative compilation with emcc 2.0.19+

Add `WARN_ON_UNDEFINED_SYMBOLS=0` for the main module (which defines
`godot_js_main` as extern coming from the "side" module, i.e. the main
Godot binary).
Fabio Alessandrelli 4 年之前
父节点
当前提交
14c057eab6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      platform/javascript/SCsub

+ 1 - 0
platform/javascript/SCsub

@@ -47,6 +47,7 @@ if env["gdnative_enabled"]:
     sys_env.Append(LINKFLAGS=["-s", "MAIN_MODULE=1"])
     sys_env.Append(CCFLAGS=["-s", "EXPORT_ALL=1"])
     sys_env.Append(LINKFLAGS=["-s", "EXPORT_ALL=1"])
+    sys_env.Append(LINKFLAGS=["-s", "WARN_ON_UNDEFINED_SYMBOLS=0"])
     # Force exporting the standard library (printf, malloc, etc.)
     sys_env["ENV"]["EMCC_FORCE_STDLIBS"] = "libc,libc++,libc++abi"
     # The main emscripten runtime, with exported standard libraries.