Skip to content

Commit 47c606e

Browse files
bgilbertjpakkane
authored andcommitted
sqlite3: enable extra checks by default
1 parent cce7095 commit 47c606e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Diff for: subprojects/packagefiles/sqlite3/meson.build

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ sqlite_args = [
2828
'-DSQLITE_SECURE_DELETE',
2929
]
3030

31+
if get_option('strict')
32+
sqlite_args += [
33+
'-DSQLITE_LIKE_DOESNT_MATCH_BLOBS',
34+
'-DSQLITE_STRICT_SUBTYPE=1',
35+
]
36+
endif
37+
3138
if host_machine.system() == 'windows'
3239
if get_option('default_library') != 'static'
3340
sqlite_args += ['-DSQLITE_API=__declspec(dllexport)']

Diff for: subprojects/packagefiles/sqlite3/meson_options.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
option(
2+
'strict',
3+
description: 'Enable extra checks',
4+
type: 'boolean',
5+
value: true
6+
)

0 commit comments

Comments
 (0)