[dotnet-linker] Add Debug to the linker configuration. (#9491)

This commit is contained in:
Rolf Bjarne Kvinge 2020-08-25 18:40:59 +02:00 коммит произвёл GitHub
Родитель 9eab011a4b
Коммит de8cc6bbd8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -136,6 +136,7 @@
<_CustomLinkerOptions>
AssemblyName=$(AssemblyName).dll
CacheDirectory=$(_LinkerCacheDirectory)
Debug=$(_BundlerDebug)
DeploymentTarget=$(_MinimumOSVersion)
ItemsDirectory=$(_LinkerItemsDirectory)
IsSimulatorBuild=$(_SdkIsSimulator)

Просмотреть файл

@ -89,6 +89,9 @@ namespace Xamarin.Linker {
case "CacheDirectory":
CacheDirectory = value;
break;
case "Debug":
Application.EnableDebug = string.Equals (value, "true", StringComparison.OrdinalIgnoreCase);
break;
case "DeploymentTarget":
if (!Version.TryParse (value, out var deployment_target))
throw new InvalidOperationException ($"Unable to parse the {key} value: {value} in {linker_file}");
@ -189,6 +192,7 @@ namespace Xamarin.Linker {
Console.WriteLine ($" ABIs: {string.Join (", ", Abis.Select (v => v.AsArchString ()))}");
Console.WriteLine ($" AssemblyName: {AssemblyName}");
Console.WriteLine ($" CacheDirectory: {CacheDirectory}");
Console.WriteLine ($" Debug: {Application.EnableDebug}");
Console.WriteLine ($" DeploymentTarget: {DeploymentTarget}");
Console.WriteLine ($" ItemsDirectory: {ItemsDirectory}");
Console.WriteLine ($" IsSimulatorBuild: {IsSimulatorBuild}");