File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,17 @@ You can enable certain features by doing the following:
74
74
export EXQLITE_SYSTEM_CFLAGS=-DSQLITE_ENABLE_DBSTAT_VTAB=1
75
75
```
76
76
77
+ Or you can pass extra environment variables using the Elixir config:
78
+
79
+ ``` elixir
80
+ config :exqlite ,
81
+ force_build: true ,
82
+ make_env: %{
83
+ " EXQLITE_SYSTEM_CFLAGS" => " -DSQLITE_ENABLE_DBSTAT_VTAB=1" ,
84
+ " V" => " 1"
85
+ }
86
+ ```
87
+
77
88
### Listing Flags Used For Compilation
78
89
79
90
If you ` export V=1 ` the flags used for compilation will be output to stdout.
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ defmodule Exqlite.MixProject do
21
21
versions: [ "2.15" , "2.16" , "2.17" ] ,
22
22
availability: & target_available_for_nif_version? / 2
23
23
] ,
24
+ make_env: Application . get_env ( :exqlite , :make_env , % { } ) ,
24
25
cc_precompiler: cc_precompiler ( ) ,
25
26
start_permanent: Mix . env ( ) == :prod ,
26
27
aliases: aliases ( ) ,
You can’t perform that action at this time.
0 commit comments