From 5b1b341fe2125b0413aa731038d31613a426cebc Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Sun, 6 Feb 2022 01:23:48 -0500 Subject: [PATCH] [mono] Allow missing assemblies in llvmonly+interp mode. (#64294) Part of the fix for https://github.com/dotnet/runtime/issues/51961. Co-authored-by: Ankit Jain --- src/mono/mono/mini/aot-runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/mini/aot-runtime.c b/src/mono/mono/mini/aot-runtime.c index d7e370676fe6cb..6e7496586cb536 100644 --- a/src/mono/mono/mini/aot-runtime.c +++ b/src/mono/mono/mini/aot-runtime.c @@ -2309,7 +2309,7 @@ load_aot_module (MonoAssemblyLoadContext *alc, MonoAssembly *assembly, gpointer if (amodule->out_of_date) { mono_trace (G_LOG_LEVEL_DEBUG, MONO_TRACE_AOT, "AOT: Module %s is unusable because a dependency is out-of-date.", assembly->image->name); - if (mono_aot_only) + if (mono_aot_only && (mono_aot_mode != MONO_AOT_MODE_LLVMONLY_INTERP)) g_error ("Failed to load AOT module '%s' while running in aot-only mode because a dependency cannot be found or it is out of date.\n", found_aot_name); } else { mono_trace (G_LOG_LEVEL_DEBUG, MONO_TRACE_AOT, "AOT: image '%s' found.", found_aot_name);