Browse Source

Merge pull request #33728 from akien-mga/emscripten-1.39.1-link-idbfs.js

HTML5: Explicitly link idbfs.js for IDBFS support
Rémi Verschelde 5 years ago
parent
commit
511de4ce51
1 changed files with 4 additions and 0 deletions
  1. 4 0
      platform/javascript/detect.py

+ 4 - 0
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