Skip to content

Commit

Permalink
[mono] Allow missing assemblies in llvmonly+interp mode. (#64294)
Browse files Browse the repository at this point in the history
Part of the fix for #51961.

Co-authored-by: Ankit Jain <[email protected]>
  • Loading branch information
vargaz and radical authored Feb 6, 2022
1 parent 9086f1e commit 5b1b341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/mini/aot-runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b1b341

Please sign in to comment.