public LinkerOptions CreateLinkerOptions() { var c = app.Config<LinkerConfig>(); var opt = new LinkerOptions(); var svc = app.GetService<IPathService>(); c.Directories.ForEach(d => opt.CodeBase.Directories.Add(new DirectoryInfo(svc.ResolvePathMacros(d)))); opt.CodeBase.LookupStartupDirectory = c.LookupStartupDirectory; opt.ForceRecompile = c.ForceRecompile; opt.NoWarnings = c.NoWarnings; opt.WarningsAsErrors = c.WarningsAsErrors; opt.SkipTimeStampCheck = c.SkipTimeStampCheck; return opt; }
public ElaLinker(LinkerOptions linkerOptions, CompilerOptions compOptions, ModuleFileInfo rootFile) : base(linkerOptions, compOptions, rootFile) { }
public ElaIncrementalLinker(LinkerOptions linkerOptions, CompilerOptions compOptions) : base(linkerOptions, compOptions, null) { }
private static LinkerOptions CreateLinkerOptions() { var linkOpt = new LinkerOptions { ForceRecompile = opt.ForceRecompile, SkipTimeStampCheck = opt.SkipTimeStampCheck, WarningsAsErrors = opt.LinkerWarningsAsErrors, NoWarnings = opt.LinkerNoWarnings }; linkOpt.CodeBase.LookupStartupDirectory = !opt.IgnoreStartupDirectory; foreach (var s in opt.ReferencePaths) linkOpt.CodeBase.Directories.Add(new DirectoryInfo(s)); linkOpt.CodeBase.Directories.Add(new DirectoryInfo(Environment.CurrentDirectory)); return linkOpt; }
public ElaIncrementalLinker(LinkerOptions linkerOptions, CompilerOptions compOptions, ModuleFileInfo file) : base(linkerOptions, compOptions, file) { }