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 setting :force_build opts in config #89

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
## v0.9.0-dev

* Rely on certificate stores provided by Erlang/OTP 25+
* Support setting `:force_build` opts in config:

```elixir
config :elixir_make, :force_build, app1: true, app2: false
```

## v0.8.4 (2024-06-04)

Expand Down
6 changes: 5 additions & 1 deletion lib/mix/tasks/compile.elixir_make.ex
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ defmodule Mix.Tasks.Compile.ElixirMake do
config = Mix.Project.config()
app = config[:app]
version = config[:version]
force_build = pre_release?(version) or Keyword.get(config, :make_force_build, false)

force_build =
pre_release?(version) or Keyword.get(config, :make_force_build, false) or
Keyword.get(Application.get_env(:elixir_make, :force_build, []), app)
josevalim marked this conversation as resolved.
Show resolved Hide resolved

{precompiler_type, precompiler} = config[:make_precompiler] || {nil, nil}

cond do
Expand Down
Loading