1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #79578 from Faless/web/4.x_dlink_visibility

[Web] Use `fvisibility=hidden` for side module when dlink_enabled.
This commit is contained in:
Rémi Verschelde
2023-08-17 11:21:47 +02:00
2 changed files with 5 additions and 0 deletions

View File

@@ -208,6 +208,8 @@ def configure(env: "Environment"):
env.Append(CCFLAGS=["-s", "SIDE_MODULE=2"])
env.Append(LINKFLAGS=["-s", "SIDE_MODULE=2"])
env.Append(CCFLAGS=["-fvisibility=hidden"])
env.Append(LINKFLAGS=["-fvisibility=hidden"])
env.extra_suffix = ".dlink" + env.extra_suffix
# Reduce code size by generating less support code (e.g. skip NodeJS support).