Skip to content

Commit

Permalink
[tools] Pass the right arguments to the AOT compiler for Mac Catalyst.
Browse files Browse the repository at this point in the history
…Fixes dotnet#12484.

Mac Catalyst is just special.

Fixes dotnet#12484.
  • Loading branch information
rolfbjarne committed Aug 20, 2021
1 parent 8d83f6c commit 47edf6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/common/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,11 @@ public void GetAotArguments (string filename, Abi abi, string outputDir, string
if (app.AotOtherArguments != null)
processArguments.AddRange (app.AotOtherArguments);
aotArguments = new List<string> ();
aotArguments.Add ($"--aot=mtriple={(enable_thumb ? arch.Replace ("arm", "thumb") : arch)}-ios");
if (Platform == ApplePlatform.MacCatalyst) {
aotArguments.Add ($"--aot=mtriple={arch}-apple-ios{DeploymentTarget}-macabi");
} else {
aotArguments.Add ($"--aot=mtriple={(enable_thumb ? arch.Replace ("arm", "thumb") : arch)}-ios");
}
aotArguments.Add ($"data-outfile={dataFile}");
aotArguments.Add ("static");
aotArguments.Add ("asmonly");
Expand Down

0 comments on commit 47edf6d

Please sign in to comment.