summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-05-03 21:44:09 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-05-03 21:52:55 +0200
commit070bd87aaaf7a15ad9d2d839182f14d5c352153b (patch)
treea4c0179d21a0699dc39f850d20f548f7b311e748 /platform
parenta4c3e915be0b075658021e9fa43c3a2d3c1584d7 (diff)
[JS] Add flag to disable weak symbols in ZSTD.
Weak symbols are currently broken in upstream emscripten.
Diffstat (limited to 'platform')
-rw-r--r--platform/javascript/detect.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index b6be44fbb2..709104c5ee 100644
--- a/platform/javascript/detect.py
+++ b/platform/javascript/detect.py
@@ -212,6 +212,8 @@ def configure(env):
sys.exit(255)
env.Append(CCFLAGS=["-s", "RELOCATABLE=1"])
env.Append(LINKFLAGS=["-s", "RELOCATABLE=1"])
+ # Weak symbols are broken upstream: https://github.com/emscripten-core/emscripten/issues/12819
+ env.Append(CPPDEFINES=["ZSTD_HAVE_WEAK_SYMBOLS=0"])
env.extra_suffix = ".gdnative" + env.extra_suffix
# Reduce code size by generating less support code (e.g. skip NodeJS support).