From 5bfb10f585cd2f22fc2267e7b3ac19dc45ed2d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 19 Nov 2019 09:44:04 +0100 Subject: [PATCH] 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. (cherry picked from commit e5dfcb5eddddab0ddcb698a972fb870432fc4364) --- platform/javascript/detect.py | 4 ++++ 1 file changed, 4 insertions(+) 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'])