[dotnet-linker] Add a Target instance

The bundler (mtouch/mmp) code needs it to compile.
This commit is contained in:
Rolf Bjarne Kvinge 2020-07-17 16:38:40 +02:00
Родитель 578d84a0fd
Коммит 658d25f71e
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -27,6 +27,7 @@ namespace Xamarin.Linker {
static ConditionalWeakTable<LinkContext, LinkerConfiguration> configurations = new ConditionalWeakTable<LinkContext, LinkerConfiguration> ();
public Application Application { get; private set; }
public Target Target { get; private set; }
public static LinkerConfiguration GetInstance (LinkContext context)
{
@ -132,6 +133,8 @@ namespace Xamarin.Linker {
ErrorHelper.Platform = Platform;
Application = new Application (this, significantLines.ToArray ());
Target = new Target (Application);
Application.Cache.Location = CacheDirectory;
switch (Platform) {