From 67c06866de511bce9d6d5738e1603ecd2f118ba5 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 2 Jul 2024 09:10:53 +0200 Subject: [PATCH] [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. --- platform/web/SCsub | 2 -- 1 file changed, 2 deletions(-) diff --git a/platform/web/SCsub b/platform/web/SCsub index 3d36a888d6dd..e81f2ec51600 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")