25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Fix bug in 8a3344e when Elixir enabled but no need to compile elixir files

This commit is contained in:
Badlop 2024-07-14 13:35:38 +02:00
parent 8ac51e63b5
commit 936460212f

View File

@ -668,6 +668,8 @@ compile_erlang_file(Dest, File, ErlOptions) ->
end. end.
-ifdef(ELIXIR_ENABLED). -ifdef(ELIXIR_ENABLED).
compile_elixir_files(_, []) ->
ok;
compile_elixir_files(Dest, [File | _] = Files) when is_list(Dest) and is_list(File) -> compile_elixir_files(Dest, [File | _] = Files) when is_list(Dest) and is_list(File) ->
BinFiles = [list_to_binary(F) || F <- Files], BinFiles = [list_to_binary(F) || F <- Files],
compile_elixir_files(list_to_binary(Dest), BinFiles); compile_elixir_files(list_to_binary(Dest), BinFiles);