Browse Source

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.
Rémi Verschelde 5 năm trước cách đây
mục cha
commit
e5dfcb5edd
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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