[runtime] always use `mono_jit_set_aot_mode` (#4491)
`mono_jit_set_aot_only` is deprecated and accidentally broke with https://github.com/mono/mono/pull/7887 This should fix device tests with `mono-2018-06`
This commit is contained in:
Родитель
fe4b21567d
Коммит
ce95d2a472
|
@ -537,10 +537,6 @@
|
|||
"char**", "argv"
|
||||
),
|
||||
|
||||
new Export ("void", "mono_jit_set_aot_only",
|
||||
"mono_bool", "aot_only"
|
||||
),
|
||||
|
||||
new Export ("void", "mono_jit_set_aot_mode",
|
||||
"MonoAotMode", "mode"
|
||||
),
|
||||
|
|
|
@ -393,7 +393,6 @@ xamarin_main (int argc, char *argv[], enum XamarinLaunchMode launch_mode)
|
|||
|
||||
#if defined (__arm__) || defined(__aarch64__)
|
||||
xamarin_register_modules ();
|
||||
mono_jit_set_aot_only (TRUE);
|
||||
#endif
|
||||
DEBUG_LAUNCH_TIME_PRINT ("\tAOT register time");
|
||||
|
||||
|
|
|
@ -663,7 +663,8 @@ namespace Xamarin.Bundler
|
|||
sw.WriteLine ("\tmono_sgen_mono_ilgen_init ();");
|
||||
sw.WriteLine ("\tmono_ee_interp_init (NULL);");
|
||||
sw.WriteLine ("\tmono_jit_set_aot_mode (MONO_AOT_MODE_INTERP);");
|
||||
}
|
||||
} else if (app.IsDeviceBuild)
|
||||
sw.WriteLine ("\tmono_jit_set_aot_mode (MONO_AOT_MODE_FULL);");
|
||||
|
||||
if (assembly_location.Length > 0)
|
||||
sw.WriteLine ("\txamarin_set_assembly_directories (&assembly_locations);");
|
||||
|
|
Загрузка…
Ссылка в новой задаче