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);
        }
Exemple #2
0
 protected void Report(Exception exception)
 {
     LinkerConfiguration.Report(Context, exception);
 }
Exemple #3
0
 public Profile(LinkerConfiguration config)
 {
     Configuration = config;
 }
Exemple #4
0
 public BaseProfile(LinkerConfiguration config)
     : base(config)
 {
 }
Exemple #5
0
        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);
 }