Skip to content

Commit

Permalink
[tools] Keep passing 'direct-icalls' to the AOT compiler for legacy X…
Browse files Browse the repository at this point in the history
…amarin. Fixes xamarin#12810.

Fixes xamarin#12810.
Fixes mono/mono#21210.
  • Loading branch information
rolfbjarne authored and vs-mobiletools-engineering-service2 committed Sep 23, 2021
1 parent 7367cf0 commit 59c9c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/common/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 59c9c41

Please sign in to comment.