Skip to content

Commit f7ae729

Browse files
authored
Allow library consumer to set config :exqlite, force_build: true (#241)
1 parent 6bd3d62 commit f7ae729

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ config :exqlite, default_chunk_size: 100
5656
In `config/config.exs`,
5757

5858
```elixir
59-
config :exqlite, make_force_build: false
59+
config :exqlite, force_build: false
6060
```
6161

62-
* `make_force_build` - Set `true` to opt out of using precompiled artefacts.
63-
This option only affects the default configuration. For advanced configuation,
64-
this library will always compile natively.
62+
* `force_build` - Set `true` to opt out of using precompiled artefacts.
63+
This option only affects the default configuration. For advanced configuation,
64+
this library will always compile natively.
6565

6666
## Advanced Configuration
6767

mix.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ defmodule Exqlite.MixProject do
1212
compilers: [:elixir_make] ++ Mix.compilers(),
1313
make_targets: ["all"],
1414
make_clean: ["clean"],
15+
make_force_build: Application.get_env(:exqlite, :force_build, false),
1516
make_precompiler: make_precompiler(),
1617
make_precompiler_url:
1718
"https://github.com/elixir-sqlite/exqlite/releases/download/v#{@version}/@{artefact_filename}",

0 commit comments

Comments
 (0)