Skip to content

Commit

Permalink
remove extra environment definition, move custom flags to custom section
Browse files Browse the repository at this point in the history
  • Loading branch information
tantaman committed Nov 29, 2023
1 parent ae4cf91 commit 8683591
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ EMFLAGS_DIST = \

EMFLAGS_INTERFACES = \
-s EXPORTED_FUNCTIONS=@$(EXPORTED_FUNCTIONS) \
-s EXPORTED_RUNTIME_METHODS=@$(EXPORTED_RUNTIME_METHODS) \
-s ENVIRONMENT="web,worker"
-s EXPORTED_RUNTIME_METHODS=@$(EXPORTED_RUNTIME_METHODS)

EMFLAGS_LIBRARIES = \
--js-library src/libauthorizer.js \
Expand All @@ -105,23 +104,23 @@ EMFLAGS_ASYNCIFY_DIST = \
WASQLITE_EXTRA_DEFINES = \
-DSQLITE_EXTRA_INIT=core_init \
-DSQLITE_ENABLE_FTS5 \
-DSQLITE_OMIT_UTF16 \
-DSQLITE_ENABLE_BYTECODE_VTAB \
-DDEFAULT_CACHE_SIZE=8000 \
-DCRSQLITE_WASM

# https://www.sqlite.org/compile.html
WASQLITE_DEFINES = \
-DSQLITE_DEFAULT_MEMSTATUS=0 \
-DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 \
-DSQLITE_DQS=0 \
-DDEFAULT_CACHE_SIZE=8000 \
-DSQLITE_LIKE_DOESNT_MATCH_BLOBS \
-DSQLITE_MAX_EXPR_DEPTH=0 \
-DSQLITE_OMIT_AUTOINIT \
-DSQLITE_OMIT_DECLTYPE \
-DSQLITE_OMIT_DEPRECATED \
-DSQLITE_OMIT_LOAD_EXTENSION \
-DSQLITE_OMIT_SHARED_CACHE \
-DSQLITE_OMIT_UTF16 \
-DSQLITE_ENABLE_BYTECODE_VTAB \
-DSQLITE_THREADSAFE=0 \
-DSQLITE_USE_ALLOCA \
-DSQLITE_ENABLE_BATCH_ATOMIC_WRITE \
Expand Down

0 comments on commit 8683591

Please sign in to comment.