elixir-sqlite / exqlite

An SQLite3 driver for Elixir
https://hexdocs.pm/exqlite
MIT License
198 stars 46 forks source link

Support configuring compile flags using Elixir config #274

Closed dvic closed 5 months ago

dvic commented 5 months ago

Oh this is interesting, I didn't think you could do this. I'll check this out and play with it.

Yeah, I've noticed this option on the docs of https://hexdocs.pm/elixir_make/Mix.Tasks.Compile.ElixirMake.html

We've been using it to change the stack depth (we've run into problems using ecto) and it working great:

config :exqlite,
  force_build: true,
  make_env: %{
    "EXQLITE_SYSTEM_CFLAGS" => "-DYYSTACKDEPTH=200",
    "V" => "1"
  }