Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions lib/mix/lib/mix/tasks/compile.elixir.ex
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ defmodule Mix.Tasks.Compile.Elixir do
Code.compiler_options(opts)
to_compile = lc f inlist to_compile, f in stale, do: f
compile_files(to_compile, compile_path)
File.touch! Path.join(compile_path, @manifest)
end

defp compile_files(false, project, compile_path, to_compile, _stale) do
Expand Down
6 changes: 5 additions & 1 deletion lib/mix/test/mix/tasks/compile.elixir_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,12 @@ defmodule Mix.Tasks.Compile.ElixirTest do

assert_received { :mix_shell, :info, ["Compiled lib/a.ex"] }
refute_received { :mix_shell, :info, ["Compiled lib/b.ex"] }

File.touch!("ebin/.compile.elixir", future)

assert Mix.Tasks.Compile.Elixir.run(["--quick"]) == :noop
end
after
purge [A, B, C]
end
end
end