Skip to content

Commit e373f12

Browse files
committed
Additional checks
1 parent e94131d commit e373f12

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@ $(KERNEL): lib/elixir/src/* lib/elixir/lib/*.ex lib/elixir/lib/*/*.ex lib/elixir
107107
fi
108108
@ echo "==> elixir (compile)";
109109
$(Q) cd lib/elixir && ../../$(ELIXIRC_MIN_SIG) "lib/**/*.ex" -o ebin;
110+
$(Q) $(GENERATE_APP) $(VERSION)
110111
$(Q) bin/elixir lib/elixir/scripts/infer.exs;
111112

112-
$(APP): lib/elixir/src/elixir.app.src lib/elixir/ebin VERSION $(GENERATE_APP)
113+
$(APP): lib/elixir/src/elixir.app.src $(GENERATE_APP)
113114
$(Q) $(GENERATE_APP) $(VERSION)
114115

115116
unicode: $(UNICODE)

lib/elixir/scripts/infer.exs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
parent = self()
22
{:ok, checker} = Module.ParallelChecker.start_link()
33

4+
# Validate we are loading Elixir modules and that they are all in place
5+
[:elixir] = Code.get_compiler_option(:infer_signatures)
6+
true = URI in Application.spec(:elixir, :modules)
7+
48
{time, modules} =
59
:timer.tc(fn ->
610
[_ | _] = paths = Path.wildcard(Path.join(__DIR__, "../ebin/Elixir.*.beam"))

0 commit comments

Comments
 (0)