diff --git a/CHANGELOG.md b/CHANGELOG.md index 274ebb1..68123a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/lib/mix/tasks/compile.elixir_make.ex b/lib/mix/tasks/compile.elixir_make.ex index 6f45fc5..56d6c2d 100644 --- a/lib/mix/tasks/compile.elixir_make.ex +++ b/lib/mix/tasks/compile.elixir_make.ex @@ -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