File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11# Edit for your paths
22EMSCRIPTEN =~/Dev/emscripten
3- EMCC =$(EMSCRIPTEN ) /emcc
3+ EMCC =$(EMSCRIPTEN ) /emcc -O2
4+ # -s INLINING_LIMIT=0
45CFLAGS =-DSQLITE_OMIT_LOAD_EXTENSION
56
67all : sql.js benchmark.html benchmark
78
89sql.js : sqlite3.c
9- $(EMCC ) $(CFLAGS ) -O2 sqlite3.c main.c --post-js bindings.js -o sql.js -s EXPORTED_FUNCTIONS=" ['_sqlite3_open', '_sqlite3_close', '_sqlite3_exec']"
10+ $(EMCC ) $(CFLAGS ) sqlite3.c main.c --post-js bindings.js -o sql.js -s EXPORTED_FUNCTIONS=" ['_sqlite3_open', '_sqlite3_close', '_sqlite3_exec']"
1011
1112benchmark.html : sqlite3.c benchmark.c
12- $(EMCC ) $(CFLAGS ) -O2 --closure 0 sqlite3.c benchmark.c --post-js bindings.js -o benchmark.html
13+ $(EMCC ) $(CFLAGS ) sqlite3.c benchmark.c -o benchmark.html
1314
1415benchmark : benchmark.c
1516 gcc $(CFLAGS ) -pthread -O2 sqlite3.c benchmark.c -o benchmark
1617
17- # INLINING?
18+ clean :
19+ rm sql.js benchmark.html benchmark
1820
You can’t perform that action at this time.
0 commit comments