Skip to content

Commit 4030196

Browse files
committed
Skip sys_core_prepare pass on Erlang/OTP 23+
1 parent 248d532 commit 4030196

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/elixir/src/elixir_erl_compiler.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ compile(Forms, File, Opts) when is_list(Forms), is_list(Opts), is_binary(File) -
4848
case erl_to_core(Forms, Opts) of
4949
{ok, CoreForms, CoreWarnings} ->
5050
format_warnings(Opts, CoreWarnings),
51+
CompileOpts = [?NO_SPAWN_COMPILER_PROCESS, from_core, no_core_prepare,
52+
no_auto_import, return, {source, Source} | Opts],
5153

52-
case compile:noenv_forms(CoreForms, [?NO_SPAWN_COMPILER_PROCESS, from_core, no_auto_import, return, {source, Source} | Opts]) of
54+
case compile:noenv_forms(CoreForms, CompileOpts) of
5355
{ok, Module, Binary, Warnings} when is_binary(Binary) ->
5456
format_warnings(Opts, Warnings),
5557
{Module, Binary};

0 commit comments

Comments
 (0)