summaryrefslogtreecommitdiff
path: root/platform/javascript
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-11-19 09:44:04 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-11-19 09:45:43 +0100
commite5dfcb5eddddab0ddcb698a972fb870432fc4364 (patch)
tree2fd648e1444971c71e6b0454818c600eac7c11e4 /platform/javascript
parentcc3b7d2ee2bcd0a4f8f88421fcdca6436b2416b1 (diff)
HTML5: Explicitly link idbfs.js for IDBFS support
Upstream Emscripten changed this in 1.39.1+, so IDBFS is no longer included by default and has to be linked manually. The explicit linking doesn't seem to be problematic on earlier versions (tested `1.38.47-upstream`). Fixes #33724.
Diffstat (limited to 'platform/javascript')
-rw-r--r--platform/javascript/detect.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index 172072db3c..a63fa90067 100644
--- a/platform/javascript/detect.py
+++ b/platform/javascript/detect.py
@@ -124,6 +124,10 @@ def configure(env):
## Link flags
+ # We use IDBFS in javascript_main.cpp. Since Emscripten 1.39.1 it needs to
+ # be linked explicitly.
+ env.Append(LIBS=['idbfs.js'])
+
env.Append(LINKFLAGS=['-s', 'BINARYEN=1'])
# Allow increasing memory buffer size during runtime. This is efficient