Skip to content

Commit

Permalink
Merge pull request #48831 from Faless/js/4.x_wasm_main_undef
Browse files Browse the repository at this point in the history
[HTML5] Fix GDNative compilation with emcc 2.0.19+
  • Loading branch information
akien-mga authored May 19, 2021
2 parents d0aaf4a + 14c057e commit 804dd7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform/javascript/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 804dd7b

Please sign in to comment.