mirror of https://github.com/stella-emu/stella.git
Default to using system-wide libsqlite3 on Linux/UNIX systems.
Fix for slow exit from app in this mode is now fixed.
This commit is contained in:
parent
d1073fc51f
commit
f7e6e61d8a
|
@ -207,7 +207,6 @@ Optional Features:
|
||||||
--disable-png
|
--disable-png
|
||||||
--enable-zip enable/disable ZIP file support [enabled]
|
--enable-zip enable/disable ZIP file support [enabled]
|
||||||
--disable-zip
|
--disable-zip
|
||||||
--use-system-sqlite use libsqlite3 installed on system [disabled]
|
|
||||||
--enable-windowed enable/disable windowed rendering modes [enabled]
|
--enable-windowed enable/disable windowed rendering modes [enabled]
|
||||||
--disable-windowed
|
--disable-windowed
|
||||||
--enable-shared build shared binary [enabled]
|
--enable-shared build shared binary [enabled]
|
||||||
|
@ -254,7 +253,6 @@ for ac_option in $@; do
|
||||||
--disable-png) _build_png=no ;;
|
--disable-png) _build_png=no ;;
|
||||||
--enable-zip) _build_zip=yes ;;
|
--enable-zip) _build_zip=yes ;;
|
||||||
--disable-zip) _build_zip=no ;;
|
--disable-zip) _build_zip=no ;;
|
||||||
--use-system-sqlite) _build_sqlite3=no ;;
|
|
||||||
--enable-windowed) _build_windowed=yes ;;
|
--enable-windowed) _build_windowed=yes ;;
|
||||||
--disable-windowed) _build_windowed=no ;;
|
--disable-windowed) _build_windowed=no ;;
|
||||||
--enable-shared) _build_static=no ;;
|
--enable-shared) _build_static=no ;;
|
||||||
|
@ -662,9 +660,9 @@ fi
|
||||||
#
|
#
|
||||||
# Check for sqlite3
|
# Check for sqlite3
|
||||||
#
|
#
|
||||||
_libsqlite3=no
|
|
||||||
echocheck "libsqlite3"
|
echocheck "libsqlite3"
|
||||||
if test "$_build_sqlite3" = no ; then
|
if test "$_build_sqlite3" = yes ; then
|
||||||
|
_libsqlite3=no
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sqlite3.h>
|
#include <sqlite3.h>
|
||||||
|
@ -673,7 +671,7 @@ EOF
|
||||||
cc_check $LDFLAGS $CXXFLAGS `pkg-config --libs sqlite3` && _libsqlite3=yes
|
cc_check $LDFLAGS $CXXFLAGS `pkg-config --libs sqlite3` && _libsqlite3=yes
|
||||||
|
|
||||||
if test "$_libsqlite3" = yes ; then
|
if test "$_libsqlite3" = yes ; then
|
||||||
echo "$_libsqlite3 (WIP, not complete)"
|
echo "$_libsqlite3"
|
||||||
else
|
else
|
||||||
echo "built-in"
|
echo "built-in"
|
||||||
_build_sqlite3=yes
|
_build_sqlite3=yes
|
||||||
|
|
|
@ -71,6 +71,7 @@ void SqliteDatabase::initialize()
|
||||||
}
|
}
|
||||||
|
|
||||||
exec("PRAGMA journal_mode=WAL");
|
exec("PRAGMA journal_mode=WAL");
|
||||||
|
exec("PRAGMA synchronous=1");
|
||||||
|
|
||||||
switch (sqlite3_wal_checkpoint_v2(myHandle, nullptr, SQLITE_CHECKPOINT_TRUNCATE, nullptr, nullptr)) {
|
switch (sqlite3_wal_checkpoint_v2(myHandle, nullptr, SQLITE_CHECKPOINT_TRUNCATE, nullptr, nullptr)) {
|
||||||
case SQLITE_OK:
|
case SQLITE_OK:
|
||||||
|
|
Loading…
Reference in New Issue