1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Use the new SQLITE_USE_LONG_DOUBLE to disable long-double support in WASM builds, as they cannot be represented in JS and this saves approximately 5.5kb in the resulting wasm file.

FossilOrigin-Name: fa7b56f776b715d061581fad6f04b871504ff5d808e7364419d1d6cdef82c5ee
This commit is contained in:
stephan
2024-10-01 17:08:23 +00:00
parent dac22f6566
commit c9c1b65698
4 changed files with 17 additions and 9 deletions

View File

@ -127,6 +127,10 @@
# define SQLITE_USE_URI 1
#endif
#ifndef SQLITE_USE_LONG_DOUBLE
# define SQLITE_USE_LONG_DOUBLE 0
#endif
#ifdef SQLITE_WASM_EXTRA_INIT
# define SQLITE_EXTRA_INIT sqlite3_wasm_extra_init
#endif
@ -159,6 +163,8 @@
# define SQLITE_OMIT_PROGRESS_CALLBACK
# undef SQLITE_OMIT_WAL
# define SQLITE_OMIT_WAL
# undef SQLITE_USE_LONG_DOUBLE
# define SQLITE_USE_LONG_DOUBLE 0
/*
The following OMITs do not work with the standard amalgamation, so
require a custom build: