Skip to content

Commit

Permalink
[Web] Remove unnecessary EMCC_FORCE_STDLIBS in dlink builds
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Faless committed Jul 2, 2024
1 parent 811ce36 commit 67c0686
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions platform/web/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 67c0686

Please sign in to comment.