diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 0635db3ef0e..4a81d8e1938 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -112,6 +112,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']) env.Append(LINKFLAGS=['-s', 'ALLOW_MEMORY_GROWTH=1']) env.Append(LINKFLAGS=['-s', 'USE_WEBGL2=1'])