From 4c2ddcf3497b4f7c662055786300fffcea8ac805 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 18 May 2022 11:27:28 +0200 Subject: [PATCH] [dotnet-linker] Bump default trampoline count when using the interpreter on x64 in .NET. Fixes #14887. (#15025) Fixes https://github.com/xamarin/xamarin-macios/issues/14887. --- dotnet/targets/Xamarin.Shared.Sdk.targets | 2 +- tools/common/Application.cs | 30 ++++++++++++++++++++++ tools/dotnet-linker/LinkerConfiguration.cs | 5 ++++ 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index 8c5f3ebf43..427c10d6b1 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -463,6 +463,7 @@ <_CustomLinkerOptions> AreAnyAssembliesTrimmed=$(_AreAnyAssembliesTrimmed) AssemblyName=$(AssemblyName).dll + @(_AotArguments -> 'AOTArgument=%(Identity)') AOTCompiler=$(_AOTCompiler) AOTOutputDirectory=$(_AOTOutputDirectory) AppBundleManifestPath=$(_AppBundleManifestPath) @@ -996,7 +997,6 @@ 0) { Console.WriteLine ($"LinkerConfiguration:"); Console.WriteLine ($" ABIs: {string.Join (", ", Abis.Select (v => v.AsArchString ()))}"); + Console.WriteLine ($" AOTArguments: {string.Join (", ", Application.AotArguments)}"); Console.WriteLine ($" AOTOutputDirectory: {AOTOutputDirectory}"); Console.WriteLine ($" AppBundleManifestPath: {Application.InfoPListPath}"); Console.WriteLine ($" AreAnyAssembliesTrimmed: {Application.AreAnyAssembliesTrimmed}");