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 e5dfcb5edd
)
This commit is contained in:
parent
995eddf714
commit
32f64e5f99
|
@ -87,6 +87,10 @@ def configure(env):
|
||||||
lzma_dec = "LZMA.decompress"
|
lzma_dec = "LZMA.decompress"
|
||||||
env.Append(LINKFLAGS=['--compression', lzma_binpath + "," + lzma_decoder + "," + lzma_dec])
|
env.Append(LINKFLAGS=['--compression', lzma_binpath + "," + lzma_decoder + "," + lzma_dec])
|
||||||
|
|
||||||
|
# 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', 'ASM_JS=1'])
|
env.Append(LINKFLAGS=['-s', 'ASM_JS=1'])
|
||||||
env.Append(LINKFLAGS=['-s', 'WASM=0'])
|
env.Append(LINKFLAGS=['-s', 'WASM=0'])
|
||||||
env.Append(LINKFLAGS=['-s', 'EXTRA_EXPORTED_RUNTIME_METHODS="[\'FS\']"'])
|
env.Append(LINKFLAGS=['-s', 'EXTRA_EXPORTED_RUNTIME_METHODS="[\'FS\']"'])
|
||||||
|
|
Loading…
Reference in New Issue