diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 172072db3cf..a63fa900679 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