File tree 3 files changed +20
-4
lines changed
3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
3
## Unlreleased
4
+ - added: ` SQLITE_ENABLE_DBSTAT_VTAB=1 ` .
5
+ - changed: Allow ` EXQLITE_SYSTEM_CFLAGS ` to be appended to the ` CFLAGS ` regardless.
4
6
5
7
## v0.13.0 - 2023-01-11
6
8
- removed: Remove support for Elixir 1.11
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ ifeq ($(EXQLITE_USE_SYSTEM),)
26
26
HEADERS += c_src/sqlite3.h c_src/sqlite3ext.h
27
27
CFLAGS += -Ic_src
28
28
else
29
- ifneq ($(EXQLITE_SYSTEM_CFLAGS),)
30
- CFLAGS += $(EXQLITE_SYSTEM_CFLAGS)
31
- endif
32
-
33
29
ifneq ($(EXQLITE_SYSTEM_LDFLAGS),)
34
30
LDFLAGS += $(EXQLITE_SYSTEM_LDFLAGS)
35
31
else
@@ -113,6 +109,12 @@ CFLAGS += -DSQLITE_ENABLE_MATH_FUNCTIONS=1
113
109
CFLAGS += -DSQLITE_ENABLE_RBU=1
114
110
CFLAGS += -DSQLITE_ENABLE_RTREE=1
115
111
CFLAGS += -DSQLITE_OMIT_DEPRECATED=1
112
+ CFLAGS += -DSQLITE_ENABLE_DBSTAT_VTAB=1
113
+
114
+ # Add any extra flags set in the environment
115
+ ifneq ($(EXQLITE_SYSTEM_CFLAGS ) ,)
116
+ CFLAGS += $(EXQLITE_SYSTEM_CFLAGS)
117
+ endif
116
118
117
119
# Set Erlang-specific compile flags
118
120
ERL_CFLAGS ?= -I$(ERL_EI_INCLUDE_DIR )
Original file line number Diff line number Diff line change @@ -52,6 +52,18 @@ config :exqlite, default_chunk_size: 100
52
52
53
53
## Advanced Configuration
54
54
55
+ ### Defining Extra Compile Flags
56
+
57
+ You can enable certain features by doing the following:
58
+
59
+ ``` bash
60
+ export EXQLITE_SYSTEM_CFLAGS=-DSQLITE_ENABLE_DBSTAT_VTAB=1
61
+ ```
62
+
63
+ ### Listing Flags Used For Compilation
64
+
65
+ If you ` export V=1 ` the flags used for compilation will be output to stdout.
66
+
55
67
### Using System Installed Libraries
56
68
57
69
This will vary depending on the operating system.
You can’t perform that action at this time.
0 commit comments