Skip to content

Commit

Permalink
[runtime] always use mono_jit_set_aot_mode
Browse files Browse the repository at this point in the history
`mono_jit_set_aot_only` is deprecated and accidently broke with
mono/mono#7887
  • Loading branch information
lewurm committed Jul 23, 2018
1 parent 8121c7b commit 8be5f8e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions runtime/exports.t4
Original file line number Diff line number Diff line change
Expand Up @@ -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"
),
Expand Down
1 change: 0 additions & 1 deletion runtime/monotouch-main.m
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ - (void) memoryWarning: (NSNotification *) sender

#if defined (__arm__) || defined(__aarch64__)
xamarin_register_modules ();
mono_jit_set_aot_only (TRUE);
#endif
DEBUG_LAUNCH_TIME_PRINT ("\tAOT register time");

Expand Down
3 changes: 2 additions & 1 deletion tools/mtouch/mtouch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,8 @@ public static string GenerateMain (Application app, IEnumerable<Assembly> assemb
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
sw.WriteLine ("\tmono_jit_set_aot_mode (MONO_AOT_MODE_FULL);");

if (assembly_location.Length > 0)
sw.WriteLine ("\txamarin_set_assembly_directories (&assembly_locations);");
Expand Down

0 comments on commit 8be5f8e

Please sign in to comment.