Commit 30d87426 authored by Romain Casati's avatar Romain Casati

Patching emscripten file packager.

parent a0fb1ebf
Pipeline #385139 failed with stages
in 63 minutes and 24 seconds
......@@ -16,7 +16,8 @@ minify: $(MINIFIED)
extern/emscripten:
git clone --depth 1 https://github.com/emscripten-core/emsdk.git
cd emsdk && ./emsdk install --build=Release 1.38.44-fastcomp ; cd -
cd emsdk/ && ./emsdk install --build=Release 1.38.44-fastcomp && cd -
cat extern/patches/emsdk_*.patch | patch -p1
mv emsdk/fastcomp/emscripten/ extern/
rm -rf emsdk/
......
This fixes file_packager.py when used out of emcc, since LZ4 is no
longer in the namespace (taken from Pyoidide)
--- a/emsdk/fastcomp/emscripten/tools/file_packager.py
+++ b/emsdk/fastcomp/emscripten/tools/file_packager.py
@@ -530,8 +530,9 @@
use_data = '''
var compressedData = %s;
compressedData.data = byteArray;
+ LZ4 = Module.LZ4
assert(typeof LZ4 === 'object', 'LZ4 not present - was your app build with -s LZ4=1 ?');
LZ4.loadPackage({ 'metadata': metadata, 'compressedData': compressedData });
Module['removeRunDependency']('datafile_%s');
''' % (meta, shared.JS.escape_for_js_string(data_target))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment