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