File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -165,8 +165,13 @@ $(SQLITE_SRC): $(EMSDK)
165165 git clone --branch version-$(SQLITE_VERSION ) --depth 1 https://github.com/sqlite/sqlite.git $(SQLITE_SRC )
166166 cd $(EMSDK ) && . ./emsdk_env.sh && cd ../sqlite && ./configure --enable-all
167167
168+ WASM_FLAGS = emcc.jsflags += -sFETCH -pthread
169+ WASM_MAKEFILE = $(SQLITE_SRC ) /ext/wasm/GNUMakefile
168170$(TARGET ) : $(SQLITE_SRC ) $(SRC_FILES )
169- cd $(SQLITE_SRC ) /ext/wasm && $(MAKE ) dist sqlite3_wasm_extra_init.c=../../../../../src/wasm.c emcc.jsflags+=" -sFETCH -pthread"
171+ if ! grep -Fxq ' $(WASM_FLAGS)' ' $(WASM_MAKEFILE)' ; then \
172+ echo '$(WASM_FLAGS)' >> '$(WASM_MAKEFILE)'; \
173+ fi
174+ cd $(SQLITE_SRC)/ext/wasm && $(MAKE) dist sqlite3_wasm_extra_init.c=../../../../../src/wasm.c
170175 mv $(SQLITE_SRC)/ext/wasm/sqlite-wasm-*.zip $(TARGET)
171176endif
172177
Original file line number Diff line number Diff line change 1010#include "vtab.c"
1111#include "pk.c"
1212#include "lz4.c"
13- //ciao
13+
1414int sqlite3_wasm_extra_init (const char * z ) {
1515 fprintf (stderr , "%s: %s()\n" , __FILE__ , __func__ );
1616 return sqlite3_auto_extension ((void * ) sqlite3_cloudsync_init );
You can’t perform that action at this time.
0 commit comments