From cf2b20b7dd98872096ca68883fc4c7c687209b33 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Mon, 3 Feb 2020 16:50:09 -0500 Subject: [PATCH] [runtime] Fix the --enable-minimal=aot build. Fixes https://github.com/mono/mono/issues/18675. --- src/mono/mono/mini/aot-compiler.c | 7 +++++++ src/mono/mono/mini/aot-runtime.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/mono/mono/mini/aot-compiler.c b/src/mono/mono/mini/aot-compiler.c index d194a35afec6e..a30b0ef359369 100644 --- a/src/mono/mono/mini/aot-compiler.c +++ b/src/mono/mono/mini/aot-compiler.c @@ -14263,4 +14263,11 @@ mono_aot_can_enter_interp (MonoMethod *method) return FALSE; } +int +mono_aot_get_method_index (MonoMethod *method) +{ + g_assert_not_reached (); + return 0; +} + #endif diff --git a/src/mono/mono/mini/aot-runtime.c b/src/mono/mono/mini/aot-runtime.c index c4b9484cf6364..3786bb0ae85b5 100644 --- a/src/mono/mono/mini/aot-runtime.c +++ b/src/mono/mono/mini/aot-runtime.c @@ -6466,4 +6466,11 @@ mono_aot_get_method_flags (guint8 *code) return MONO_AOT_METHOD_FLAG_NONE; } +gboolean +mono_aot_init_llvmonly_method (gpointer aot_module, guint32 method_index, MonoClass *init_class, MonoError *error) +{ + g_assert_not_reached (); + return FALSE; +} + #endif