File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 9
9
- uses : actions/checkout@v1
10
10
- uses : mymindstorm/setup-emsdk@v1
11
11
with :
12
- version : ' 1.38.48 '
12
+ version : ' 1.39.8-fastcomp '
13
13
- uses : actions/cache@v1
14
14
id : cache
15
15
with :
16
16
path : ~/.emscripten_cache
17
- key : emscripten-1.38.48
17
+ key : emscripten-1.39.8-fastcomp
18
18
- name : make
19
19
run : make
20
20
- name : test
Original file line number Diff line number Diff line change 14
14
- uses : actions/checkout@v1
15
15
- uses : mymindstorm/setup-emsdk@v1
16
16
with :
17
- version : ' 1.38.48 '
17
+ version : ' 1.39.8-fastcomp '
18
18
- name : make
19
19
run : make
20
20
- name : Create Release
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ CFLAGS = \
32
32
EMFLAGS = \
33
33
--memory-init-file 0 \
34
34
-s RESERVED_FUNCTION_POINTERS=64 \
35
+ -s ALLOW_TABLE_GROWTH=1 \
35
36
-s EXPORTED_FUNCTIONS=@src/exported_functions.json \
36
37
-s EXTRA_EXPORTED_RUNTIME_METHODS=@src/exported_runtime_methods.json \
37
38
-s SINGLE_FILE=0 \
@@ -51,6 +52,8 @@ EMFLAGS_WASM = \
51
52
EMFLAGS_OPTIMIZED = \
52
53
-s INLINING_LIMIT=50 \
53
54
-O3 \
55
+ -flto \
56
+ --llvm-lto 1 \
54
57
--closure 1
55
58
56
59
EMFLAGS_DEBUG = \
Original file line number Diff line number Diff line change @@ -874,6 +874,8 @@ Module["onRuntimeInitialized"] = (function onRuntimeInitialized() {
874
874
@param func [Function] the actual function to be executed.
875
875
*/
876
876
Database . prototype [ "create_function" ] = function create_function ( name , func ) {
877
+ // TODO : add type arguments for compatibility with the llvm backend
878
+ // https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html#calling-javascript-functions-as-function-pointers-from-c
877
879
var func_ptr ;
878
880
function wrapped_func ( cx , argc , argv ) {
879
881
var arg ;
You can’t perform that action at this time.
0 commit comments