Skip to content

Commit 28e22d0

Browse files
nasercaAlex Naser
andauthored
Ensure all runtime_modules loaded before mapping their paths (#12287)
Co-authored-by: Alex Naser <alex.naser@remote.com>
1 parent 32b71f2 commit 28e22d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/elixir/lib/kernel/parallel_compiler.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ defmodule Kernel.ParallelCompiler do
271271
for {{:module, module}, binary} when is_binary(binary) <- result,
272272
do: module
273273

274+
:code.ensure_modules_loaded(runtime_modules)
275+
274276
runtime_modules =
275277
for module <- runtime_modules,
276278
path = :code.which(module),

0 commit comments

Comments
 (0)