You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: emscripten/build.sh
+8-11Lines changed: 8 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -28,19 +28,16 @@ emcc \
28
28
-O2 \
29
29
--bind \
30
30
--memory-init-file 0 \
31
-
--pre-js ./prejs.js \
31
+
--pre-js ./pre.js \
32
+
--post-js ./post.js \
33
+
--js-library ./library_virtualfs.js \
32
34
-s "EXTRA_EXPORTED_RUNTIME_METHODS=['FS']" \
33
-
-s FORCE_FILESYSTEM=1 \
34
35
-s PRECISE_I64_MATH=1 \
35
36
-s PRECISE_F32=1 \
36
37
-s ASSERTIONS=2 \
37
-
libgit2_wrapper.bc \
38
-
libgit2.bc \
39
-
-o libgit2.js
38
+
./libgit2_wrapper.bc \
39
+
./libgit2.bc \
40
+
-o ./libgit2.js
40
41
41
-
# require libgit2.js into VirtualGit.js module
42
-
# expose a JS wrapper around functions and JS semantics
43
-
# moduralize and export name may not actually work
44
-
# the --memory-init-file=0 makes sure not to have a separate memory file
45
-
# since this is not designed for browser usage, or well it's geared towards system usage anyway
46
-
# libgit2.js would eventually be required by VirtualGit.js and then a proper cjs module and es6 module exposed here, which has to allow the insertion of the VirtualFS as a parameter from the outside
0 commit comments