summaryrefslogtreecommitdiffstats
path: root/platform/web/SCsub
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-07-02 09:10:53 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-07-02 16:47:00 +0200
commit67c06866de511bce9d6d5738e1603ecd2f118ba5 (patch)
tree636ae83a80b3a966eb3a98299425f34915dba958 /platform/web/SCsub
parent811ce36c6090013f1a48676c0388892bf1621288 (diff)
downloadredot-engine-67c06866de511bce9d6d5738e1603ecd2f118ba5.tar.gz
[Web] Remove unnecessary EMCC_FORCE_STDLIBS in dlink builds
As discussed with upstream, the C/C++ standard library is always fully included when building with MAIN_MODULE=1, so using EMCC_FORCE_STDLIBS is not necessary in our case.
Diffstat (limited to 'platform/web/SCsub')
-rw-r--r--platform/web/SCsub2
1 files changed, 0 insertions, 2 deletions
diff --git a/platform/web/SCsub b/platform/web/SCsub
index 3d36a888d6..e81f2ec516 100644
--- a/platform/web/SCsub
+++ b/platform/web/SCsub
@@ -71,8 +71,6 @@ if env["dlink_enabled"]:
sys_env.Append(LINKFLAGS=["-s", "MAIN_MODULE=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"
sys_env["CCFLAGS"].remove("-fvisibility=hidden")
sys_env["LINKFLAGS"].remove("-fvisibility=hidden")