summaryrefslogtreecommitdiff
path: root/platform/javascript/SCsub
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-19 13:07:17 +0200
committerGitHub <noreply@github.com>2021-05-19 13:07:17 +0200
commit804dd7bb46b04755e924f779d877c99d531475a8 (patch)
treebf9b2ccdd2340497e06d377fdf97323e69213aa0 /platform/javascript/SCsub
parentd0aaf4a1fd9e9943436ab6255a6d52257a794ce6 (diff)
parent14c057eab605e8018a1ac7f98ed0f16faeabf9a2 (diff)
Merge pull request #48831 from Faless/js/4.x_wasm_main_undef
[HTML5] Fix GDNative compilation with emcc 2.0.19+
Diffstat (limited to 'platform/javascript/SCsub')
-rw-r--r--platform/javascript/SCsub1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/javascript/SCsub b/platform/javascript/SCsub
index a760e36982..24be07d8ec 100644
--- a/platform/javascript/SCsub
+++ b/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.