public static void Input(string dir, string target, IEnumerable<string> args) { if (Settings.DebugEnabled) { var cfiles = from a in args where a.Contains(".c") select a; Logging.Emit("invoked: dir={0}, target={1} srcs={2}", dir, target, string.Join(",", cfiles.ToArray())); } }
public virtual bool IsSupported(ICompiler comp, IEnumerable <string> args) { if (FileUtils.Exists(compilerPath)) { var rv = comp.ProcessArguments(args.ToArray()); if (!rv) { Logging.Emit("unsupported args: {0}", string.Join(" ", args.ToArray())); } else { Logging.Input(comp.WorkingDirectory, comp.ObjectTarget, args); } return(rv); } throw new FileNotFoundException(compilerPath); }