Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Romain Casati
Basthon Kernel
Commits
30d87426
Commit
30d87426
authored
Feb 01, 2021
by
Romain Casati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patching emscripten file packager.
parent
a0fb1ebf
Pipeline
#385139
failed with stages
in 63 minutes and 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
Makefile
Makefile
+2
-1
extern/patches/emsdk_file_packager.patch
extern/patches/emsdk_file_packager.patch
+15
-0
No files found.
Makefile
View file @
30d87426
...
...
@@ -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/
...
...
extern/patches/emsdk_file_packager.patch
0 → 100644
View file @
30d87426
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))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment