Skip to content

Commit 121be57

Browse files
authored
Support setting :force_build opts in config (#89)
1 parent 4576979 commit 121be57

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
## v0.9.0-dev
44

55
* Rely on certificate stores provided by Erlang/OTP 25+
6+
* Support setting `:force_build` opts in config:
7+
8+
```elixir
9+
config :elixir_make, :force_build, app1: true, app2: false
10+
```
611

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

lib/mix/tasks/compile.elixir_make.ex

+5-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ defmodule Mix.Tasks.Compile.ElixirMake do
136136
config = Mix.Project.config()
137137
app = config[:app]
138138
version = config[:version]
139-
force_build = pre_release?(version) or Keyword.get(config, :make_force_build, false)
139+
140+
force_build =
141+
pre_release?(version) or Keyword.get(config, :make_force_build, false) or
142+
Keyword.get(Application.get_env(:elixir_make, :force_build, []), app, false)
143+
140144
{precompiler_type, precompiler} = config[:make_precompiler] || {nil, nil}
141145

142146
cond do

0 commit comments

Comments
 (0)