From 070b43b5ab339f49447646df9f4e50d27817d697 Mon Sep 17 00:00:00 2001 From: Peter M Date: Mon, 11 Aug 2025 16:41:59 +0200 Subject: [PATCH] Relax function checks to warnings Signed-off-by: Peter M --- lib/mix/tasks/check.ex | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/mix/tasks/check.ex b/lib/mix/tasks/check.ex index a6bb005..07145e0 100644 --- a/lib/mix/tasks/check.ex +++ b/lib/mix/tasks/check.ex @@ -184,11 +184,13 @@ defmodule Mix.Tasks.Atomvm.Check do missing = MapSet.difference(calls_set, avail_funcs) if MapSet.size(missing) != 0 do - IO.puts("error: following modules or functions are not available on AtomVM:") + IO.puts("Warning: following modules or functions are not available on AtomVM:") print_list(missing) IO.puts("") + IO.puts("(Using them may not be supported; make sure ExAtomVM is fully updated.)") + IO.puts("") - :error + :ok else :ok end @@ -215,11 +217,13 @@ defmodule Mix.Tasks.Atomvm.Check do """) end - IO.puts("error: following missing instructions are used:") + IO.puts("Warning: following missing instructions are used:") print_list(missing_instructions) IO.puts("") + IO.puts("(Using them may not be supported; make sure ExAtomVM is fully updated.)") + IO.puts("") - :error + :ok else :ok end