Merge pull request #93853 from Faless/web/no_force_stdlib

[Web] Remove unnecessary `EMCC_FORCE_STDLIBS` in dlink builds
This commit is contained in:
Rémi Verschelde 2024-07-02 17:27:35 +02:00
commit f0d15bbfdf
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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")