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)