Skip to content

Commit 3c7b698

Browse files
authored
Update to 3.36.0 + update script (closes #152) (#159)
* Little script to update SQLite * Update Sqlite to recent stable version (3.36.0) * Remove `-DSQLITE_ENABLE_DESERIALIZE=1` as this is enabled by default now * Also remove `DSQLITE_ENABLE_DESERIALIZE=1` in Makefile.win
1 parent 359e24e commit 3c7b698

File tree

5 files changed

+4363
-2976
lines changed

5 files changed

+4363
-2976
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ CFLAGS += -DSQLITE_ENABLE_MATH_FUNCTIONS=1
3434
CFLAGS += -DSQLITE_ENABLE_RBU=1
3535
CFLAGS += -DSQLITE_ENABLE_RTREE=1
3636
CFLAGS += -DSQLITE_OMIT_DEPRECATED=1
37-
CFLAGS += -DSQLITE_ENABLE_DESERIALIZE=1
3837

3938
# TODO: We should allow the person building to be able to specify this
4039
CFLAGS += -DNDEBUG=1

Makefile.win

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ CFLAGS = -DSQLITE_ENABLE_MATH_FUNCTIONS=1 $(CFLAGS)
4444
CFLAGS = -DSQLITE_ENABLE_RBU=1 $(CFLAGS)
4545
CFLAGS = -DSQLITE_ENABLE_RTREE=1 $(CFLAGS)
4646
CFLAGS = -DSQLITE_OMIT_DEPRECATED=1 $(CFLAGS)
47-
CFLAGS = -DSQLITE_ENABLE_DESERIALIZE=1 $(CFLAGS)
4847

4948
# TODO: We should allow the person building to be able to specify this
5049
CFLAGS = -DNDEBUG=1 $(CFLAGS)

bin/download_sqlite.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
3+
# https://sqlite.org/chronology.html
4+
# https://sqlite.org/download.html
5+
# https://www.sqlite.org/src/timeline?r=version-3.36.0
6+
# VERSION consists of 7 digits, like:3350000 for "3.35.5" or 3360000 for "3.36.0"
7+
8+
VERSION=3360000 # 3.36.0
9+
10+
mkdir -p tmp
11+
pushd tmp
12+
13+
wget https://sqlite.org/2021/sqlite-autoconf-$VERSION.tar.gz
14+
15+
tar xvfz sqlite-autoconf-$VERSION.tar.gz
16+
cd sqlite-autoconf-$VERSION
17+
18+
cp sqlite3.c ../../sqlite3/
19+
cp sqlite3.h ../../sqlite3/
20+
cp sqlite3ext.h ../../sqlite3/
21+
22+
rm -rf tmp/*
23+
24+
echo "UPDATED SQLITE C CODE TO $VERSION!"

0 commit comments

Comments
 (0)