Skip to content

Commit

Permalink
Support setting :force_build opts in config (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu authored Nov 12, 2024
1 parent 4576979 commit 121be57
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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, false)

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

cond do
Expand Down

0 comments on commit 121be57

Please sign in to comment.