Skip to content

Commit

Permalink
[tools] Don't call mono_marshal_ilgen_init in .NET.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Aug 26, 2022
1 parent 5ef440f commit f67e77e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/common/Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,9 @@ void GenerateIOSMain (StringWriter sw, Abi abi)
if (app.UseInterpreter) {
sw.WriteLine ("extern \"C\" { void mono_ee_interp_init (const char *); }");
sw.WriteLine ("extern \"C\" { void mono_icall_table_init (void); }");
#if !NET
sw.WriteLine ("extern \"C\" { void mono_marshal_ilgen_init (void); }");
#endif
sw.WriteLine ("extern \"C\" { void mono_method_builder_ilgen_init (void); }");
sw.WriteLine ("extern \"C\" { void mono_sgen_mono_ilgen_init (void); }");
}
Expand All @@ -769,7 +771,9 @@ void GenerateIOSMain (StringWriter sw, Abi abi)
sw.WriteLine ("\tmono_jit_set_aot_mode (MONO_AOT_MODE_LLVMONLY);");
else if (app.UseInterpreter) {
sw.WriteLine ("\tmono_icall_table_init ();");
#if !NET
sw.WriteLine ("\tmono_marshal_ilgen_init ();");
#endif
sw.WriteLine ("\tmono_method_builder_ilgen_init ();");
sw.WriteLine ("\tmono_sgen_mono_ilgen_init ();");
#if !NET
Expand Down

0 comments on commit f67e77e

Please sign in to comment.