CClash.CompilerCacheBase.IsSupported C# (CSharp) Method

IsSupported() public method

public IsSupported ( ICompiler comp, IEnumerable args ) : bool
comp ICompiler
args IEnumerable
return bool
        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);
        }