public static LinkerConfiguration GetInstance(LinkContext context) { if (!configurations.TryGetValue(context, out var instance)) { if (!context.TryGetCustomData("LinkerOptionsFile", out var linker_options_file)) { throw new Exception($"No custom linker options file was passed to the linker (using --custom-data LinkerOptionsFile=..."); } instance = new LinkerConfiguration(linker_options_file); configurations.Add(context, instance); } return(instance); }
protected void Report(Exception exception) { LinkerConfiguration.Report(Context, exception); }
public Profile(LinkerConfiguration config) { Configuration = config; }
public BaseProfile(LinkerConfiguration config) : base(config) { }
public override sealed void Initialize(LinkContext context) { base.Initialize(context); Configuration = LinkerConfiguration.GetInstance(context); }
protected void Report(List <Exception> exceptions) { LinkerConfiguration.Report(Context, exceptions); }
protected override void Report(Exception exception) { LinkerConfiguration.Report(context, exception); }