Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configuring compile flags using Elixir config #274

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

dvic
Copy link
Contributor

@dvic dvic commented Jan 5, 2024

No description provided.

Copy link
Member

@warmwaffles warmwaffles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@dvic
Copy link
Contributor Author

dvic commented Jan 8, 2024

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"
  }

@warmwaffles warmwaffles merged commit 947b490 into elixir-sqlite:main Jan 8, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants