summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-19 10:40:37 +0100
committerGitHub <noreply@github.com>2019-11-19 10:40:37 +0100
commit511de4ce51f75f464c43df811ec717b21a6dd749 (patch)
tree04433a9f829a704d322818732820d7ff511b19a9
parentd8cf3aa5abc446a502e08d9244f5b698174e83e7 (diff)
parente5dfcb5eddddab0ddcb698a972fb870432fc4364 (diff)
Merge pull request #33728 from akien-mga/emscripten-1.39.1-link-idbfs.js
HTML5: Explicitly link idbfs.js for IDBFS support
-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