From 936460212f744880279b50954010459d12a0188f Mon Sep 17 00:00:00 2001 From: Badlop Date: Sun, 14 Jul 2024 13:35:38 +0200 Subject: [PATCH] Fix bug in 8a3344e when Elixir enabled but no need to compile elixir files --- src/ext_mod.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ext_mod.erl b/src/ext_mod.erl index 2228af99e..cb24d2289 100644 --- a/src/ext_mod.erl +++ b/src/ext_mod.erl @@ -668,6 +668,8 @@ compile_erlang_file(Dest, File, ErlOptions) -> end. -ifdef(ELIXIR_ENABLED). +compile_elixir_files(_, []) -> + ok; compile_elixir_files(Dest, [File | _] = Files) when is_list(Dest) and is_list(File) -> BinFiles = [list_to_binary(F) || F <- Files], compile_elixir_files(list_to_binary(Dest), BinFiles);