Skip to content

Commit 9b7b7d6

Browse files
committed
Do not assume blake is always available
Closes #12809.
1 parent f40aa10 commit 9b7b7d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/mix/lib/mix/compilers/elixir.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,9 @@ defmodule Mix.Compilers.Elixir do
454454
8 -> :crypto.hash(:blake2b, contents)
455455
_ -> :crypto.hash(:blake2s, contents)
456456
end
457+
rescue
458+
# Blake may not be available on all OpenSSL distribution
459+
_ -> :erlang.md5(contents)
457460
end
458461

459462
defp set_compiler_opts(opts) do

0 commit comments

Comments
 (0)