From 59c9c41601496ac80b24b98e57a2ac59007b29d6 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 23 Sep 2021 07:46:38 +0200 Subject: [PATCH] [tools] Keep passing 'direct-icalls' to the AOT compiler for legacy Xamarin. Fixes #12810. Fixes https://github.com/xamarin/xamarin-macios/issues/12810. Fixes https://github.com/mono/mono/issues/21210. --- tools/common/Application.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/common/Application.cs b/tools/common/Application.cs index 412207a7543d..8f8ee79a2311 100644 --- a/tools/common/Application.cs +++ b/tools/common/Application.cs @@ -1491,7 +1491,7 @@ public void GetAotArguments (string filename, Abi abi, string outputDir, string aotArguments.Add ($"data-outfile={dataFile}"); aotArguments.Add ("static"); aotArguments.Add ("asmonly"); - if (app.LibMonoLinkMode == AssemblyBuildTarget.StaticObject) + if (app.LibMonoLinkMode == AssemblyBuildTarget.StaticObject || !Driver.IsDotNet) aotArguments.Add ("direct-icalls"); aotArguments.AddRange (app.AotArguments); if (llvm_only)