Skip to content

Commit c79c099

Browse files
committed
Relax function checks to warnings
Signed-off-by: Peter M <[email protected]>
1 parent 19d9cd8 commit c79c099

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/mix/tasks/check.ex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,12 @@ defmodule Mix.Tasks.Atomvm.Check do
184184
missing = MapSet.difference(calls_set, avail_funcs)
185185

186186
if MapSet.size(missing) != 0 do
187-
IO.puts("error: following modules or functions are not available on AtomVM:")
187+
IO.puts("Warning: following modules or functions are not available on AtomVM:")
188+
IO.puts("(Using them may not be supported; make sure ExAtomVM is fully updated.)")
188189
print_list(missing)
189190
IO.puts("")
190191

191-
:error
192+
:ok
192193
else
193194
:ok
194195
end
@@ -215,11 +216,12 @@ defmodule Mix.Tasks.Atomvm.Check do
215216
""")
216217
end
217218

218-
IO.puts("error: following missing instructions are used:")
219+
IO.puts("Warning: following missing instructions are used:")
220+
IO.puts("(Using them may not be supported; make sure ExAtomVM is fully updated.)")
219221
print_list(missing_instructions)
220222
IO.puts("")
221223

222-
:error
224+
:ok
223225
else
224226
:ok
225227
end

0 commit comments

Comments
 (0)